Notification update

This commit is contained in:
Ruud
2011-08-18 15:52:07 +02:00
parent b69bab4235
commit 31e57b9510
15 changed files with 112 additions and 70 deletions
+3 -1
View File
@@ -91,7 +91,6 @@ class Searcher(Plugin):
successful = fireEvent('download', data = nzb, movie = movie, single = True)
if successful:
log.info('Downloading of %s successful.' % nzb.get('name'))
# Mark release as snatched
db = get_session()
@@ -105,6 +104,9 @@ class Searcher(Plugin):
mvie.status_id = snatched_status.get('id')
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())
return True
return False