Simpler notifications
This commit is contained in:
1 parent
0dc68c2839
commit
4e5a7c22a4
13 files changed
+25
-47
No files matched your search
@@ -108,7 +108,7 @@ class Searcher(Plugin):
|
||||
db.commit()
|
||||
|
||||
log.info('Downloading of %s successful.' % nzb.get('name'))
|
||||
fireEvent('notify', type = 'movie.snatched', message = 'Downloading of %s successful.' % nzb.get('name'), data = rls.to_dict())
|
||||
fireEvent('movie.snatched', message = 'Downloading of %s successful.' % nzb.get('name'), data = rls.to_dict())
|
||||
|
||||
return True
|
||||
|
||||
@@ -117,6 +117,10 @@ class Searcher(Plugin):
|
||||
log.info('Better quality (%s) already available or snatched for %s' % (type['quality']['label'], default_title))
|
||||
break
|
||||
|
||||
# Break if CP wants to shut down
|
||||
if self.shuttingDown():
|
||||
break
|
||||
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user