mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Match port as well when retrieving pms url
This commit is contained in:
parent
bc57dd650c
commit
594443d1dc
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,8 @@ def get_real_pms_url():
|
||||||
|
|
||||||
if connections:
|
if connections:
|
||||||
# Get connection with matching address, otherwise return first connection
|
# 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.__setattr__('PMS_URL', conn['uri'])
|
||||||
plexpy.CONFIG.write()
|
plexpy.CONFIG.write()
|
||||||
logger.info(u"PlexPy PlexTV :: Server URL retrieved.")
|
logger.info(u"PlexPy PlexTV :: Server URL retrieved.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue