Mark movie snatched on manual download
This commit is contained in:
@@ -161,6 +161,7 @@ class Release(Plugin):
|
||||
|
||||
db = get_session()
|
||||
id = getParam('id')
|
||||
status_snatched = fireEvent('status.add', 'snatched', single = True)
|
||||
|
||||
rel = db.query(Relea).filter_by(id = id).first()
|
||||
if rel:
|
||||
@@ -181,6 +182,10 @@ class Release(Plugin):
|
||||
'files': {}
|
||||
}), manual = True, single = True)
|
||||
|
||||
if success:
|
||||
rel.status_id = status_snatched.get('id')
|
||||
db.commit()
|
||||
|
||||
#db.close()
|
||||
return jsonified({
|
||||
'success': success
|
||||
|
||||
Reference in New Issue
Block a user