Browse Source

Merge pull request #66 from itsmegb/nma_fixes

Notify My Android Fixes
pull/67/merge
Ruud Burger 14 years ago
parent
commit
82a43f7bee
  1. 6
      couchpotato/core/notifications/notifymyandroid/main.py

6
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':

Loading…
Cancel
Save