diff --git a/headphones/notifiers.py b/headphones/notifiers.py index 545350f7..64fded1c 100644 --- a/headphones/notifiers.py +++ b/headphones/notifiers.py @@ -443,7 +443,7 @@ class PUSHBULLET(object): self.apikey = headphones.CONFIG.PUSHBULLET_APIKEY self.deviceid = headphones.CONFIG.PUSHBULLET_DEVICEID - def notify(self, message): + def notify(self, message, status): if not headphones.CONFIG.PUSHBULLET_ENABLED: return @@ -451,7 +451,7 @@ class PUSHBULLET(object): data = {'type': "note", 'title': "Headphones", - 'body': message} + 'body': message + ': ' + status} if self.deviceid: data['device_iden'] = self.deviceid diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 319e09c9..f838f32c 100755 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -475,7 +475,7 @@ def doPostProcessing(albumid, albumpath, release, tracks, downloaded_track_list, if headphones.CONFIG.PUSHBULLET_ENABLED: logger.info(u"PushBullet request") pushbullet = notifiers.PUSHBULLET() - pushbullet.notify(pushmessage, "Download and Postprocessing completed") + pushbullet.notify(pushmessage, statusmessage) if headphones.CONFIG.TWITTER_ENABLED: logger.info(u"Sending Twitter notification") diff --git a/headphones/searcher.py b/headphones/searcher.py index 6af32131..5f60a4e4 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -932,7 +932,7 @@ def send_to_downloader(data, bestqual, album): if headphones.CONFIG.PUSHBULLET_ENABLED and headphones.CONFIG.PUSHBULLET_ONSNATCH: logger.info(u"Sending PushBullet notification") pushbullet = notifiers.PUSHBULLET() - pushbullet.notify(name + " has been snatched!", "Download started") + pushbullet.notify(name, "Download started") if headphones.CONFIG.TWITTER_ENABLED and headphones.CONFIG.TWITTER_ONSNATCH: logger.info(u"Sending Twitter notification") twitter = notifiers.TwitterNotifier()