Browse Source

Merge pull request #6973 from karaambaa/patch-1

Added icon and source name to Boxcar notification
pull/7035/head
Ruud Burger 9 years ago
committed by GitHub
parent
commit
669101ab93
  1. 3
      couchpotato/core/notifications/boxcar2.py

3
couchpotato/core/notifications/boxcar2.py

@ -10,6 +10,7 @@ autoload = 'Boxcar2'
class Boxcar2(Notification):
url = 'https://new.boxcar.io/api/notifications'
LOGO_URL = 'https://raw.githubusercontent.com/CouchPotato/CouchPotatoServer/master/couchpotato/static/images/notify.couch.small.png'
def notify(self, message = '', data = None, listener = None):
if not data: data = {}
@ -27,6 +28,8 @@ class Boxcar2(Notification):
'user_credentials': self.conf('token'),
'notification[title]': toUnicode('%s - %s' % (self.default_title, message)),
'notification[long_message]': toUnicode(long_message),
'notification[icon_url]': self.LOGO_URL,
'notification[source_name]': 'CouchPotato',
}
self.urlopen(self.url, data = data)

Loading…
Cancel
Save