Simplified messages
This commit is contained in:
1 parent
a7bce52b7b
commit
2f10cd0e3d
2 files changed
+4
-3
No files matched your search
@@ -286,7 +286,7 @@ class Renamer(Plugin):
|
|||||||
fireEventAsync('renamer.after', group)
|
fireEventAsync('renamer.after', group)
|
||||||
|
|
||||||
# Notify on download
|
# Notify on download
|
||||||
download_message = 'Downloaded %s (%s) successfully.' % (group['library']['titles'][0]['title'], replacements['quality'])
|
download_message = 'Downloaded %s (%s)' % (group['library']['titles'][0]['title'], replacements['quality'])
|
||||||
fireEventAsync('movie.downloaded', message = download_message, data = group)
|
fireEventAsync('movie.downloaded', message = download_message, data = group)
|
||||||
|
|
||||||
# Break if CP wants to shut down
|
# Break if CP wants to shut down
|
||||||
|
|||||||
@@ -124,8 +124,9 @@ class Searcher(Plugin):
|
|||||||
rls.status_id = snatched_status.get('id')
|
rls.status_id = snatched_status.get('id')
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
log.info('Snatched "%s" successfully.' % data.get('name'))
|
snatch_message = 'Snatched %s' % data.get('name')
|
||||||
fireEvent('movie.snatched', message = 'Downloading of %s successful.' % data.get('name'), data = rls.to_dict())
|
log.info(snatch_message)
|
||||||
|
fireEvent('movie.snatched', message = snatch_message, data = rls.to_dict())
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user