From 6e2380f203669f4abb46202d93ef74e0a8bf1cc2 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 24 Aug 2012 16:35:50 +0200 Subject: [PATCH] NMA fix Thanks @Mochaka --- .../core/notifications/notifymyandroid/main.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/notifications/notifymyandroid/main.py b/couchpotato/core/notifications/notifymyandroid/main.py index a6a316da..7ac5936c 100644 --- a/couchpotato/core/notifications/notifymyandroid/main.py +++ b/couchpotato/core/notifications/notifymyandroid/main.py @@ -15,11 +15,16 @@ class NotifyMyAndroid(Notification): nma.addkey(keys) nma.developerkey(self.conf('dev_key')) - # hacky fix for the event type + # hacky fix for the event type # as it seems to be part of the message now self.event = message.split(' ')[0] - - response = nma.push(self.default_title, self.event , message, self.conf('priority'), batch_mode = len(keys) > 1) + response = nma.push( + application = self.default_title, + event = self.event, + description = message, + priority = self.conf('priority'), + batch_mode = len(keys) > 1 + ) for key in keys: if not response[str(key)]['code'] == u'200':