Standardise failed status
apply the failed status in case of a manual re-add and automatic try next release
This commit is contained in:
1 parent
2979a8edec
commit
b85942989d
1 file changed
+3
-4
@@ -647,13 +647,12 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
|||||||
pass
|
pass
|
||||||
elif item['status'] == 'failed':
|
elif item['status'] == 'failed':
|
||||||
fireEvent('download.remove_failed', item, single = True)
|
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'):
|
if self.conf('next_on_failed'):
|
||||||
fireEvent('searcher.try_next_release', movie_id = rel.movie_id)
|
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':
|
elif item['status'] == 'completed':
|
||||||
log.info('Download of %s completed!', item['name'])
|
log.info('Download of %s completed!', item['name'])
|
||||||
if item['id'] and item['downloader'] and item['folder']:
|
if item['id'] and item['downloader'] and item['folder']:
|
||||||
|
|||||||
Reference in new issue
Block a user