From f57f2444fe44b2a3da501e4817ca692804e33418 Mon Sep 17 00:00:00 2001 From: mano3m Date: Wed, 11 Dec 2013 22:11:33 +0100 Subject: [PATCH] Improved checking Fixes #2539 ? --- couchpotato/core/plugins/renamer/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/renamer/main.py b/couchpotato/core/plugins/renamer/main.py index d74d8ede..eb8fbd24 100755 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -826,10 +826,11 @@ Remove it if you want it to be renamed (again, or at least let it try again) try: for rel in rels: rel_dict = rel.to_dict({'info': {}}) - if rel_dict['info'].get('download_id'): + if rel_dict['info'].get('download_id') and rel_dict['info'].get('download_downloader'): download_ids.append({'id': rel_dict['info']['download_id'], 'downloader': rel_dict['info']['download_downloader']}) except: log.error('Error getting download IDs from database') + self.checking_snatched = False return False release_downloads = fireEvent('download.status', download_ids, merge = True)