@@ -43,7 +43,6 @@ MainView {
4343 : "Ubuntu.Components.Themes.Ambiance"
4444
4545 Component.onDestruction: {
46− console.log("[LOG]: Download cancelled");
4746 var db = Podcasts.init()
4847 db.transaction(function (tx) {
4948 tx.executeSql('UPDATE Episode SET queued=0 WHERE queued=1');
@@ -167,6 +166,7 @@ MainView {
167166 metadata: Metadata {
168167 showInIndicator: true
169168 title: singleDownloadObject.title
169+ custom: {"guid": singleDownloadObject.guid, "image" : singleDownloadObject.image}
170170 }
171171 }
172172 }
@@ -179,7 +179,7 @@ MainView {
179179 DownloadManager {
180180 id: downloader
181181
182− property string downloadingGuid: downloads.length > 0 ? downloads[0].guid : "NULL"
182+ property string downloadingGuid: downloads.length > 0 ? downloads[0].metadata.custom.guid : "NULL"
183183 property int progress: downloads.length > 0 ? downloads[0].progress : 0
184184
185185 cleanDownloads: true
@@ -187,7 +187,7 @@ MainView {
187187 var db = Podcasts.init();
188188 var finalLocation = fileManager.saveDownload(path);
189189 db.transaction(function (tx) {
190− tx.executeSql("UPDATE Episode SET downloadedfile=?, queued=0 WHERE guid=?", [finalLocation, download.guid]);
190+ tx.executeSql("UPDATE Episode SET downloadedfile=?, queued=0 WHERE guid=?", [finalLocation, download.metadata.custom.guid]);
191191 });
192192 }
193193