diff --git a/plexpy/plextv.py b/plexpy/plextv.py index 3b5e34ae..c9486239 100644 --- a/plexpy/plextv.py +++ b/plexpy/plextv.py @@ -109,7 +109,7 @@ 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 - and c['port'] == plexpy.CONFIG.PMS_PORT), connections[0]) + and c['port'] == str(plexpy.CONFIG.PMS_PORT)), connections[0]) plexpy.CONFIG.__setattr__('PMS_URL', conn['uri']) plexpy.CONFIG.write() logger.info(u"PlexPy PlexTV :: Server URL retrieved.")