From 1182a28a6e381a52e38986998589cabd02657159 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Wed, 19 Nov 2008 18:20:25 +0100 Subject: [PATCH] Currently downloading episodes should not be "new" (bug 154) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix a bug where "new" episodes that are currently being downloaded are still considered new in the "new episodes" dialog and re-offered for download. This patch fixes it. Thanks to Jérôme Chabod for reporting this bug in Bugzilla. --- src/gpodder/libpodcasts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpodder/libpodcasts.py b/src/gpodder/libpodcasts.py index 89b6a6a2..02e190d4 100644 --- a/src/gpodder/libpodcasts.py +++ b/src/gpodder/libpodcasts.py @@ -299,7 +299,7 @@ class podcastChannel(object): db.save_channel(self) def get_new_episodes( self): - return [episode for episode in db.load_episodes(self, factory=lambda x: podcastItem.create_from_dict(x, self)) if episode.state == db.STATE_NORMAL and not episode.is_played] + return [episode for episode in db.load_episodes(self, factory=lambda x: podcastItem.create_from_dict(x, self)) if episode.state == db.STATE_NORMAL and not episode.is_played and not services.download_status_manager.is_download_in_progress(episode.url)] def update_m3u_playlist(self): if gl.config.create_m3u_playlists: -- 2.11.4.GIT