Speed up checking of PMS connection, e.g. on startup

This commit is contained in:
croneter 2018-05-20 14:17:49 +02:00
parent a7702573ad
commit fe3293e986

View file

@ -143,8 +143,6 @@ def check_connection(url, token=None, verifySSL=None):
verifySSL = None if settings('sslverify') == 'true' else False
if 'plex.tv' in url:
url = 'https://plex.tv/api/home/users'
else:
url = url + '/library/onDeck'
LOG.debug("Checking connection to server %s with verifySSL=%s",
url, verifySSL)
answer = DU().downloadUrl(url,