From 5c72650233e44dbd192a79f4d4518a603695100a Mon Sep 17 00:00:00 2001 From: karaambaa Date: Sun, 9 Oct 2016 10:36:00 +0200 Subject: [PATCH] Added icon and source name to Boxcar notification --- couchpotato/core/notifications/boxcar2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/notifications/boxcar2.py b/couchpotato/core/notifications/boxcar2.py index 04ce4f3..c6f49e6 100644 --- a/couchpotato/core/notifications/boxcar2.py +++ b/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)