mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-17 14:55:07 -05:00
Merge pull request #574 from vzoltan/patch-1
Update pushbullet.py to include episode name
This commit is contained in:
commit
55bc853b79
@ -36,17 +36,17 @@ class PushbulletNotifier:
|
|||||||
|
|
||||||
def notify_snatch(self, ep_name):
|
def notify_snatch(self, ep_name):
|
||||||
if sickbeard.PUSHBULLET_NOTIFY_ONSNATCH:
|
if sickbeard.PUSHBULLET_NOTIFY_ONSNATCH:
|
||||||
self._sendPushbullet(pushbullet_api=None, event=common.notifyStrings[common.NOTIFY_SNATCH], message=ep_name,
|
self._sendPushbullet(pushbullet_api=None, event=common.notifyStrings[common.NOTIFY_SNATCH] + " : " + ep_name, message=ep_name,
|
||||||
notificationType="note", method="POST")
|
notificationType="note", method="POST")
|
||||||
|
|
||||||
def notify_download(self, ep_name):
|
def notify_download(self, ep_name):
|
||||||
if sickbeard.PUSHBULLET_NOTIFY_ONDOWNLOAD:
|
if sickbeard.PUSHBULLET_NOTIFY_ONDOWNLOAD:
|
||||||
self._sendPushbullet(pushbullet_api=None, event=common.notifyStrings[common.NOTIFY_DOWNLOAD],
|
self._sendPushbullet(pushbullet_api=None, event=common.notifyStrings[common.NOTIFY_DOWNLOAD] + " : " + ep_name,
|
||||||
message=ep_name, notificationType="note", method="POST")
|
message=ep_name, notificationType="note", method="POST")
|
||||||
|
|
||||||
def notify_subtitle_download(self, ep_name, lang):
|
def notify_subtitle_download(self, ep_name, lang):
|
||||||
if sickbeard.PUSHBULLET_NOTIFY_ONSUBTITLEDOWNLOAD:
|
if sickbeard.PUSHBULLET_NOTIFY_ONSUBTITLEDOWNLOAD:
|
||||||
self._sendPushbullet(pushbullet_api=None, event=common.notifyStrings[common.NOTIFY_SUBTITLE_DOWNLOAD],
|
self._sendPushbullet(pushbullet_api=None, event=common.notifyStrings[common.NOTIFY_SUBTITLE_DOWNLOAD] + " : " + ep_name + " : " + lang,
|
||||||
message=ep_name + ": " + lang, notificationType="note", method="POST")
|
message=ep_name + ": " + lang, notificationType="note", method="POST")
|
||||||
|
|
||||||
def _sendPushbullet(self, pushbullet_api=None, pushbullet_device=None, event=None, message=None,
|
def _sendPushbullet(self, pushbullet_api=None, pushbullet_device=None, event=None, message=None,
|
||||||
|
Loading…
Reference in New Issue
Block a user