Simpler notifications

This commit is contained in:
Ruud committed 2011-08-30 13:41:45 +02:00
1 parent 0dc68c2839
commit 4e5a7c22a4
13 files changed
+25 -47

No files matched your search

+1 -4
View File
@@ -12,13 +12,10 @@ log = CPLog(__name__)
class Growl(Notification):
listen_to = ['movie.downloaded', 'movie.snatched']
def conf(self, attr):
return Env.setting(attr, 'growl')
def notify(self, message = '', data = {}, type = None):
if self.dontNotify(type): return
def notify(self, message = '', data = {}):
hosts = [x.strip() for x in self.conf('host').split(",")]
password = self.conf('password')