diff --git a/gui/slick/js/configNotifications.js b/gui/slick/js/configNotifications.js index df03d5d3..342bec4f 100644 --- a/gui/slick/js/configNotifications.js +++ b/gui/slick/js/configNotifications.js @@ -268,10 +268,12 @@ $(document).ready(function(){ var devices = jQuery.parseJSON(data).devices; $("#pushbullet_device_list").html(''); for (var i = 0; i < devices.length; i++) { - if(current_pushbullet_device == devices[i].iden) { - $("#pushbullet_device_list").append('') - } else { - $("#pushbullet_device_list").append('') + if(devices[i].active == true) { + if(current_pushbullet_device == devices[i].iden) { + $("#pushbullet_device_list").append('') + } else { + $("#pushbullet_device_list").append('') + } } } if(msg) { diff --git a/sickbeard/notifiers/pushbullet.py b/sickbeard/notifiers/pushbullet.py index b4fa360c..8a731e1a 100644 --- a/sickbeard/notifiers/pushbullet.py +++ b/sickbeard/notifiers/pushbullet.py @@ -69,7 +69,7 @@ class PushbulletNotifier: if method == 'POST': uri = '/v2/pushes' else: - uri = '/api/devices' + uri = '/v2/devices' logger.log(u"Pushbullet event: " + str(event), logger.DEBUG) logger.log(u"Pushbullet message: " + str(message), logger.DEBUG) @@ -106,6 +106,7 @@ class PushbulletNotifier: response = http_handler.getresponse() request_body = response.read() request_status = response.status + logger.log(u"Pushbullet response: %s" % request_body, logger.DEBUG) if request_status == 200: if testMessage: