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
00f1077Daniel Kutka
app/podbird.qml+2
@@ -316,6 +316,7 @@ MainView {
316 player.playlist.clear()
316 player.playlist.clear()
317 Podcasts.clearQueue()
317 Podcasts.clearQueue()
318
318
319+ url = decodeFileURI(url)
319 // Add episode to queue
320 // Add episode to queue
320 Podcasts.addItemToQueue(guid, image, name, artist, url, position)
321 Podcasts.addItemToQueue(guid, image, name, artist, url, position)
321 player.playlist.addItem(url)
322 player.playlist.addItem(url)
@@ -326,6 +327,7 @@ MainView {
326 }
327 }
327
328
328 function addEpisodeToQueue(guid, image, name, artist, url, position) {
329 function addEpisodeToQueue(guid, image, name, artist, url, position) {
330+ url = decodeFileURI(url)
329 Podcasts.addItemToQueue(guid, image, name, artist, url, position)
331 Podcasts.addItemToQueue(guid, image, name, artist, url, position)
330 player.playlist.addItem(url)
332 player.playlist.addItem(url)
331
333
app/ui/SearchPage.qml+4−4
@@ -136,7 +136,6 @@ Page {
136 onTriggered: {
136 onTriggered: {
137 resultsView.forceActiveFocus()
137 resultsView.forceActiveFocus()
138 subscribeFromFeed(feedUrlField.item.text);
138 subscribeFromFeed(feedUrlField.item.text);
139− tabs.selectedTabIndex = 2;
140 }
139 }
141 },
140 },
142 Action {
141 Action {
@@ -164,7 +163,6 @@ Page {
164 onAccepted: {
163 onAccepted: {
165 resultsView.forceActiveFocus()
164 resultsView.forceActiveFocus()
166 subscribeFromFeed(feedUrlField.text);
165 subscribeFromFeed(feedUrlField.text);
167− tabs.selectedTabIndex = 2;
168 }
166 }
169 }
167 }
170 }
168 }
@@ -427,7 +425,7 @@ Page {
427 var artist = "";
425 var artist = "";
428 var image = "";
426 var image = "";
429 if (xhr.readyState === XMLHttpRequest.DONE) {
427 if (xhr.readyState === XMLHttpRequest.DONE) {
430− if(loadingDialog.visible)
428+ if(loadingDialog)
431 progressBar.value++
429 progressBar.value++
432 if (xhr.status < 200 || xhr.status > 299 || xhr.responseXML === null) {
430 if (xhr.status < 200 || xhr.status > 299 || xhr.responseXML === null) {
433 PopupUtils.open(subscribeFailedDialog);
431 PopupUtils.open(subscribeFailedDialog);
@@ -456,7 +454,9 @@ Page {
456
454
457 if(name != "") {
455 if(name != "") {
458 Podcasts.subscribe(artist, name, feed, image);
456 Podcasts.subscribe(artist, name, feed, image);
459− imageDownloader.addDownload(feed, image)
457+ imageDownloader.addDownload(feed, image);
458+ if (!loadingDialog)
459+ tabs.selectedTabIndex = 2;
460 } else {
460 } else {
461 PopupUtils.open(subscribeFailedDialog);
461 PopupUtils.open(subscribeFailedDialog);
462 searchPage.header = addHeader
462 searchPage.header = addHeader