diff --git a/couchpotato/core/plugins/release/main.py b/couchpotato/core/plugins/release/main.py index 9df23d96..1b0bdce5 100644 --- a/couchpotato/core/plugins/release/main.py +++ b/couchpotato/core/plugins/release/main.py @@ -270,7 +270,7 @@ class Release(Plugin): } def updateStatus(self, id, status = None): - if not status: return + if not status: return False db = get_session() @@ -289,3 +289,5 @@ class Release(Plugin): #Update all movie info as there is no release update function fireEvent('notify.frontend', type = 'release.update_status.%s' % rel.id, data = status.get('id')) + + return True \ No newline at end of file diff --git a/couchpotato/core/plugins/renamer/main.py b/couchpotato/core/plugins/renamer/main.py index 9ca4896c..d32ec9e0 100755 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -721,9 +721,6 @@ Remove it if you want it to be renamed (again, or at least let it try again) self.tagDir(release_download['folder'], 'downloading') elif release_download['status'] == 'seeding': - # Set the release to seeding - fireEvent('release.update_status', rel.id, status = seeding_status, single = True) - #If linking setting is enabled, process release if self.conf('file_action') != 'move' and not rel.status_id == seeding_status.get('id') and self.statusInfoComplete(release_download): log.info('Download of %s completed! It is now being processed while leaving the original files alone for seeding. Current ratio: %s.', (release_download['name'], release_download['seed_ratio'])) @@ -738,6 +735,9 @@ Remove it if you want it to be renamed (again, or at least let it try again) #let it seed log.debug('%s is seeding with ratio: %s', (release_download['name'], release_download['seed_ratio'])) + # Set the release to seeding + fireEvent('release.update_status', rel.id, status = seeding_status, single = True) + elif release_download['status'] == 'failed': # Set the release to failed fireEvent('release.update_status', rel.id, status = failed_status, single = True)