From ac42563c5ef2ed4bb8b0211c591d4b6f402224a3 Mon Sep 17 00:00:00 2001 From: Tim Van Date: Sun, 7 Feb 2016 22:28:04 +0200 Subject: [PATCH] Refresh PMS URL when changing is_remote option in settings. --- plexpy/webserve.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plexpy/webserve.py b/plexpy/webserve.py index bd1485d4..7cfbdd41 100644 --- a/plexpy/webserve.py +++ b/plexpy/webserve.py @@ -1192,6 +1192,11 @@ class WebInterface(object): (kwargs['pms_ssl'] != plexpy.CONFIG.PMS_SSL): server_changed = True + # If we change the PMS remote setting, make sure we grab the new url. + if 'pms_is_remote' in kwargs and \ + (kwargs['pms_is_remote'] != plexpy.CONFIG.PMS_IS_REMOTE): + server_changed = True + # Remove config with 'hscard-' prefix and change home_stats_cards to list if 'home_stats_cards' in kwargs: for k in kwargs.keys():