From 69cfbea5f3cd3c0244b6e90e61303839b24f6ee6 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 15 May 2016 17:20:28 -0700 Subject: [PATCH] Refresh Join device list when changing API key --- data/interfaces/default/notification_config.html | 2 +- plexpy/notifiers.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/data/interfaces/default/notification_config.html b/data/interfaces/default/notification_config.html index d56049b9..35f43fa6 100644 --- a/data/interfaces/default/notification_config.html +++ b/data/interfaces/default/notification_config.html @@ -217,7 +217,7 @@ } } - $('#pushbullet_apikey, #pushover_apitoken, #scripts_folder').on('change', function () { + $('#pushbullet_apikey, #pushover_apitoken, #scripts_folder, #join_apikey').on('change', function () { // Reload modal to update certain fields doAjaxCall('set_notification_config', $(this), 'tabs', true, reloadModal); return false; diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 0fa445f3..1fb1ea96 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -2633,6 +2633,8 @@ class JOIN(object): def return_config_options(self): devices = '
'.join(['%s: %s' % (v, k) for k, v in self.get_devices().iteritems() if k]) + if not devices: + devices = 'Enter your Join API key to load your device list.' config_option = [{'label': 'Join API Key', 'value': self.apikey,