Fixed bug where it didnt do anything...

This commit is contained in:
mano3m
2013-10-16 22:17:19 +02:00
parent c12b189f5f
commit eb17afc368
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -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
+3 -3
View File
@@ -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)