From b85942989dcd69e5ed8a3c4a9b38edd9081c89de Mon Sep 17 00:00:00 2001 From: mano3m <-> Date: Sun, 21 Apr 2013 23:46:21 +0200 Subject: [PATCH] Standardise failed status apply the failed status in case of a manual re-add and automatic try next release --- couchpotato/core/plugins/renamer/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/couchpotato/core/plugins/renamer/main.py b/couchpotato/core/plugins/renamer/main.py index a8b39c7f..47080cbc 100644 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -647,13 +647,12 @@ Remove it if you want it to be renamed (again, or at least let it try again) pass elif item['status'] == 'failed': fireEvent('download.remove_failed', item, single = True) + rel.status_id = failed_status.get('id') + rel.last_edit = int(time.time()) + db.commit() if self.conf('next_on_failed'): fireEvent('searcher.try_next_release', movie_id = rel.movie_id) - else: - rel.status_id = failed_status.get('id') - rel.last_edit = int(time.time()) - db.commit() elif item['status'] == 'completed': log.info('Download of %s completed!', item['name']) if item['id'] and item['downloader'] and item['folder']: