git.iko.soy/maciek134/podphoenix
on main help sign in
Fix for unable to play some podcasts and fix regression - unable to add podcast by url
commit00f1077b74cc4d909956fb6d175d23b13ac6a6db authorDaniel Kutka <dano.kutka@gmail.com> dateTue 30 Jun 2020, 13:10 (6 years ago) parent8777821
2 files changed+6−4
app/podbird.qml+2 app/ui/SearchPage.qml+4−4
app/podbird.qml+2
@@ -316,6 +316,7 @@ MainView {
316316 player.playlist.clear()
317317 Podcasts.clearQueue()
318318
319+ url = decodeFileURI(url)
319320 // Add episode to queue
320321 Podcasts.addItemToQueue(guid, image, name, artist, url, position)
321322 player.playlist.addItem(url)
@@ -326,6 +327,7 @@ MainView {
326327 }
327328
328329 function addEpisodeToQueue(guid, image, name, artist, url, position) {
330+ url = decodeFileURI(url)
329331 Podcasts.addItemToQueue(guid, image, name, artist, url, position)
330332 player.playlist.addItem(url)
331333
app/ui/SearchPage.qml+4−4
@@ -136,7 +136,6 @@ Page {
136136 onTriggered: {
137137 resultsView.forceActiveFocus()
138138 subscribeFromFeed(feedUrlField.item.text);
139− tabs.selectedTabIndex = 2;
140139 }
141140 },
142141 Action {
@@ -164,7 +163,6 @@ Page {
164163 onAccepted: {
165164 resultsView.forceActiveFocus()
166165 subscribeFromFeed(feedUrlField.text);
167− tabs.selectedTabIndex = 2;
168166 }
169167 }
170168 }
@@ -427,7 +425,7 @@ Page {
427425 var artist = "";
428426 var image = "";
429427 if (xhr.readyState === XMLHttpRequest.DONE) {
430− if(loadingDialog.visible)
428+ if(loadingDialog)
431429 progressBar.value++
432430 if (xhr.status < 200 || xhr.status > 299 || xhr.responseXML === null) {
433431 PopupUtils.open(subscribeFailedDialog);
@@ -456,7 +454,9 @@ Page {
456454
457455 if(name != "") {
458456 Podcasts.subscribe(artist, name, feed, image);
459− imageDownloader.addDownload(feed, image)
457+ imageDownloader.addDownload(feed, image);
458+ if (!loadingDialog)
459+ tabs.selectedTabIndex = 2;
460460 } else {
461461 PopupUtils.open(subscribeFailedDialog);
462462 searchPage.header = addHeader