Browse Source

Fixed bug where it didnt do anything...

pull/2269/head
mano3m 12 years ago
parent
commit
eb17afc368
  1. 4
      couchpotato/core/plugins/release/main.py
  2. 6
      couchpotato/core/plugins/renamer/main.py

4
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

6
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)

Loading…
Cancel
Save