Fix PMS showing up twice

- Fixes #469
This commit is contained in:
croneter 2018-05-15 19:39:34 +02:00
parent 43c31ce419
commit 76193329d6

View file

@ -216,7 +216,7 @@ def discover_pms(token=None):
for pms in local_pms_list: for pms in local_pms_list:
for plex_pms in plex_pms_list: for plex_pms in plex_pms_list:
if pms['machineIdentifier'] == plex_pms['machineIdentifier']: if pms['machineIdentifier'] == plex_pms['machineIdentifier']:
continue break
else: else:
# Only found PMS using GDM - add it to the PMS from plex.tv # Only found PMS using GDM - add it to the PMS from plex.tv
https = _pms_https_enabled('%s:%s' % (pms['ip'], pms['port'])) https = _pms_https_enabled('%s:%s' % (pms['ip'], pms['port']))