Simpler notifications
This commit is contained in:
1 parent
0dc68c2839
commit
4e5a7c22a4
13 files changed
+25
-47
No files matched your search
@@ -18,8 +18,6 @@ log = CPLog(__name__)
|
||||
|
||||
class NMJ(Notification):
|
||||
|
||||
listen_to = ['movie.downloaded', 'movie.snatched']
|
||||
|
||||
def __init__(self):
|
||||
super(NMJ, self).__init__()
|
||||
|
||||
@@ -75,8 +73,7 @@ class NMJ(Notification):
|
||||
'mount': mount,
|
||||
})
|
||||
|
||||
def notify(self, message = '', data = {}, type = None):
|
||||
if self.dontNotify(type): return
|
||||
def notify(self, message = '', data = {}):
|
||||
|
||||
host = self.conf('host')
|
||||
mount = self.conf('mount')
|
||||
|
||||
Reference in new issue
Block a user