From 35c1dc70f0e5d18c0f08b7f2f95b8a38c9c3354a Mon Sep 17 00:00:00 2001 From: itsmegb Date: Mon, 9 Jan 2012 20:42:38 +0000 Subject: [PATCH] pull priority from the config and uses a very hacky way to to show the event type --- couchpotato/core/notifications/notifymyandroid/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/notifications/notifymyandroid/main.py b/couchpotato/core/notifications/notifymyandroid/main.py index a4574a61..45b07cde 100644 --- a/couchpotato/core/notifications/notifymyandroid/main.py +++ b/couchpotato/core/notifications/notifymyandroid/main.py @@ -15,7 +15,11 @@ class NotifyMyAndroid(Notification): nma.addkey(keys) nma.developerkey(self.conf('dev_key')) - response = nma.push(self.app_name, 'CouchPotato', message, priority = self.priority, batch_mode = len(keys) > 1) + # 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) for key in keys: if not response[str(key)]['code'] == u'200':