From 2b57bdcd03c79a814a6e44fe015080a28e6e4ee2 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 13 Oct 2013 15:17:39 +0200 Subject: [PATCH] Revert "Make sure to untag downloading dir if it's completed. fix #2341" This reverts commit 65f039e9eda288460331e567dabf409ebaf7c8c7. --- 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 e0ece59..64690e5 100755 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -735,10 +735,6 @@ Remove it if you want it to be renamed (again, or at least let it try again) fireEvent('movie.searcher.try_next_release', movie_id = rel.movie_id) elif item['status'] == 'completed': log.info('Download of %s completed!', item['name']) - - # Remove the downloading tag - self.untagDir(item['folder'], 'downloading') - if self.statusInfoComplete(item): # If the release has been seeding, process now the seeding is done @@ -762,6 +758,9 @@ Remove it if you want it to be renamed (again, or at least let it try again) # Set the release to snatched if it was missing before fireEvent('release.update_status', rel.id, status = snatched_status, single = True) + # Remove the downloading tag + self.untagDir(item['folder'], 'downloading') + # Scan and Allow the downloader to clean-up item.update({'pause': False, 'scan': True, 'process_complete': True}) scan_items.append(item)