Fix problem for download cancelling when deleting channels

Merge some minor fixes (indentation in services.py and use
episode.url instead of episode.link in gui.py) from the 0.12.2
release branch.
This commit is contained in:
Nick 2008-07-22 19:09:48 +00:00 committed by Thomas Perl
parent 488395006f
commit 6c0221b263
2 changed files with 2 additions and 2 deletions

View File

@ -1920,7 +1920,7 @@ class gPodder(GladeWidget):
# cancel any active downloads from this channel
if not delete_partial:
for episode in self.active_channel.get_all_episodes():
services.download_status_manager.cancel_by_url(episode.link)
services.download_status_manager.cancel_by_url(episode.url)
# get the URL of the podcast we want to select next
position = self.channels.index(self.active_channel)

View File

@ -409,7 +409,7 @@ class DownloadStatusManager(ObservableService):
thread = self.status_list[element]['thread']
if thread is not None and thread.url == url:
self.remove_download_id( element)
return True
return True
return False