~michael-sheldon/podbird/snap

« back to all changes in this revision

Viewing changes to app/ui/SearchPage.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2016-03-23 22:19:23 UTC
  • mfrom: (140.1.5 add-cleanup-settings)
  • Revision ID: krnekhelesh@gmail.com-20160323221923-khpogli6pgsj48vd
- Added settings option to remove orphaned files and links.
- Added settings option to refresh podcast artwork (only works for podcasts added via search feature)

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
                    onClicked: {
277
277
                        if (!model.subscribed) {
278
278
                            Podcasts.subscribe(model.artist, model.name, model.feed, model.image);
279
 
                            imageDownloader.feed = model.feed;
280
 
                            imageDownloader.download(model.image);
 
279
                            imageDownloader.addDownload(model.feed, model.image)
281
280
                        } else {
282
281
                            var db = Podcasts.init();
283
282
                            db.transaction(function (tx) {
440
439
 
441
440
                if(name != "") {
442
441
                    Podcasts.subscribe(artist, name, feed, image);
443
 
                    imageDownloader.feed = feed;
444
 
                    imageDownloader.download(image);
 
442
                    imageDownloader.addDownload(feed, image)
445
443
                    tabs.selectedTabIndex = 2;
446
444
                } else {
447
445
                    PopupUtils.open(subscribeFailedDialog);