Fix PKC auto-connecting to a local PMS
This commit is contained in:
parent
a1bda39e9d
commit
83598ff3f1
1 changed files with 7 additions and 9 deletions
|
@ -241,20 +241,18 @@ class InitialSetup(object):
|
||||||
"""
|
"""
|
||||||
Checks for server's connectivity. Returns check_connection result
|
Checks for server's connectivity. Returns check_connection result
|
||||||
"""
|
"""
|
||||||
# Re-direct via plex if remote - will lead to the correct SSL
|
|
||||||
# certificate
|
|
||||||
if server['local']:
|
if server['local']:
|
||||||
url = ('%s://%s:%s'
|
|
||||||
% (server['scheme'], server['ip'], server['port']))
|
|
||||||
# Deactive SSL verification if the server is local for Kodi 17
|
# Deactive SSL verification if the server is local for Kodi 17
|
||||||
verifySSL = True if v.KODIVERSION >= 18 else False
|
verifySSL = True if v.KODIVERSION >= 18 else False
|
||||||
else:
|
else:
|
||||||
url = server['baseURL']
|
|
||||||
verifySSL = True
|
verifySSL = True
|
||||||
chk = PF.check_connection(url,
|
if not server['token']:
|
||||||
token=server['token'],
|
# Plex GDM: we only get the token from plex.tv after
|
||||||
verifySSL=verifySSL)
|
# Sign-in to plex.tv
|
||||||
return chk
|
server['token'] = utils.settings('plexToken') or None
|
||||||
|
return PF.check_connection(server['baseURL'],
|
||||||
|
token=server['token'],
|
||||||
|
verifySSL=verifySSL)
|
||||||
|
|
||||||
def pick_pms(self, showDialog=False, inform_of_search=False):
|
def pick_pms(self, showDialog=False, inform_of_search=False):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue