This commit is contained in:
Ruud
2012-01-14 23:27:42 +01:00
parent 222f1e2d96
commit fd63731c0e
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
from couchpotato.api import addApiView from couchpotato.api import addApiView
from couchpotato.core.event import addEvent, fireEvent from couchpotato.core.event import addEvent
from couchpotato.core.helpers.request import jsonified from couchpotato.core.helpers.request import jsonified
from couchpotato.core.logger import CPLog from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin from couchpotato.core.plugins.base import Plugin
@@ -28,7 +28,7 @@ class Notification(Plugin):
def notify(message, data): def notify(message, data):
if not self.conf('on_snatch', default = 1) and listener == 'movie.snatched': if not self.conf('on_snatch', default = 1) and listener == 'movie.snatched':
return return
return self.notify(message, data) return self.notify(message = message, data = data)
addEvent(listener, notify) addEvent(listener, notify)
@@ -12,7 +12,6 @@ class Boxcar(Notification):
def notify(self, message = '', data = {}): def notify(self, message = '', data = {}):
if self.isDisabled(): return if self.isDisabled(): return
print 'test'
try: try:
message = message.strip() message = message.strip()