From 594443d1dc79a5ffe50050241752ae6257b4bd00 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 22 May 2016 13:24:45 -0700 Subject: [PATCH 1/5] Match port as well when retrieving pms url --- plexpy/plextv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexpy/plextv.py b/plexpy/plextv.py index ab0ed37a..3b5e34ae 100644 --- a/plexpy/plextv.py +++ b/plexpy/plextv.py @@ -108,7 +108,8 @@ def get_real_pms_url(): if connections: # Get connection with matching address, otherwise return first connection - conn = next((c for c in connections if c['address'] == plexpy.CONFIG.PMS_IP), connections[0]) + conn = next((c for c in connections if c['address'] == plexpy.CONFIG.PMS_IP + and c['port'] == plexpy.CONFIG.PMS_PORT), connections[0]) plexpy.CONFIG.__setattr__('PMS_URL', conn['uri']) plexpy.CONFIG.write() logger.info(u"PlexPy PlexTV :: Server URL retrieved.") From f6a3bc57e2abb9994dda3fc4ce5d80505046d5ee Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 22 May 2016 13:24:52 -0700 Subject: [PATCH 2/5] Fix typos --- ISSUE_TEMPLATE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index 9193aa24..631e3228 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -1,10 +1,10 @@