From 16756ddb8c872b7c120dde15d4e7b452c5c4665a Mon Sep 17 00:00:00 2001 From: Tim Van Date: Mon, 8 Feb 2016 00:21:40 +0200 Subject: [PATCH] Don't chose a custom URL when picking a hostname for local SSL configs. --- plexpy/plextv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/plextv.py b/plexpy/plextv.py index df93548e..bb8de76b 100644 --- a/plexpy/plextv.py +++ b/plexpy/plextv.py @@ -86,7 +86,7 @@ def get_real_pms_url(): plexpy.CONFIG.__setattr__('PMS_URL', item['uri']) plexpy.CONFIG.write() logger.info(u"PlexPy PlexTV :: Server URL retrieved.") - if not plexpy.CONFIG.PMS_IS_REMOTE and item['local'] == '1': + if not plexpy.CONFIG.PMS_IS_REMOTE and item['local'] == '1' and 'plex.direct' in item['uri']: plexpy.CONFIG.__setattr__('PMS_URL', item['uri']) plexpy.CONFIG.write() logger.info(u"PlexPy PlexTV :: Server URL retrieved.")