mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Add SickRage to notification title
This commit is contained in:
parent
704281ab58
commit
c9cc36fbc6
1 changed files with 3 additions and 2 deletions
|
@ -31,7 +31,7 @@ API_URL = "https://new.boxcar.io/api/notifications"
|
||||||
|
|
||||||
|
|
||||||
class Boxcar2Notifier:
|
class Boxcar2Notifier:
|
||||||
def test_notify(self, accesstoken, title="Test"):
|
def test_notify(self, accesstoken, title="SickRage : Test"):
|
||||||
return self._sendBoxcar2("This is a test notification from SickBeard", title, accesstoken)
|
return self._sendBoxcar2("This is a test notification from SickBeard", title, accesstoken)
|
||||||
|
|
||||||
def _sendBoxcar2(self, msg, title, accesstoken):
|
def _sendBoxcar2(self, msg, title, accesstoken):
|
||||||
|
@ -46,12 +46,13 @@ class Boxcar2Notifier:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# build up the URL and parameters
|
# build up the URL and parameters
|
||||||
|
#more info goes here - https://boxcar.uservoice.com/knowledgebase/articles/306788-how-to-send-your-boxcar-account-a-notification
|
||||||
msg = msg.strip()
|
msg = msg.strip()
|
||||||
curUrl = API_URL
|
curUrl = API_URL
|
||||||
|
|
||||||
data = urllib.urlencode({
|
data = urllib.urlencode({
|
||||||
'user_credentials': accesstoken,
|
'user_credentials': accesstoken,
|
||||||
'notification[title]': title,
|
'notification[title]': "SickRage : " + title,
|
||||||
'notification[long_message]': msg,
|
'notification[long_message]': msg,
|
||||||
'notification[sound]': "bird-1"
|
'notification[sound]': "bird-1"
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue