From 024094559be5d8493ac0fc01b9428717864bac0f Mon Sep 17 00:00:00 2001 From: Justin Forest Date: Mon, 6 Oct 2008 23:07:37 +0400 Subject: [PATCH] Stop looking for episodes marked as deleted that still exist in fs. If an episode is marked as deleted but the corresponding file somehow still exists in the file system, this code was "resurrecting" the episode, and vice-versa for downloaded episodes that lack their files. Questionable behaviour, because a situation like that can only mean an error somewhere, and this code was just making it harder to track the real problem, and added unnecessary FS interaction. --- src/gpodder/libpodcasts.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gpodder/libpodcasts.py b/src/gpodder/libpodcasts.py index b82cb56d..b32d5002 100644 --- a/src/gpodder/libpodcasts.py +++ b/src/gpodder/libpodcasts.py @@ -336,12 +336,6 @@ class podcastChannel(object): if services.download_status_manager.is_download_in_progress(url): status_icon = util.get_tree_icon(ICON_DOWNLOADING, icon_cache=self.icon_cache, icon_size=icon_size) else: - if episode.state != db.STATE_DOWNLOADED and episode.file_exists(): - episode.mark(state=db.STATE_DOWNLOADED) - log('Resurrected episode %s', episode.guid) - elif episode.state == db.STATE_DOWNLOADED and not episode.file_exists(): - episode.mark(state=db.STATE_DELETED) - log('Burried episode %s', episode.guid) if episode.state == db.STATE_NORMAL: if episode.is_played: status_icon = None -- 2.11.4.GIT