Don't declare connection when poking PMS

This commit is contained in:
tomkat83 2016-04-08 13:18:19 +02:00
parent 53b15aa51a
commit 3d5a3e9bfb
2 changed files with 7 additions and 5 deletions

View file

@ -421,7 +421,8 @@ def PMSHttpsEnabled(url):
doUtils = downloadutils.DownloadUtils().downloadUrl
res = doUtils('https://%s/identity' % url,
authenticate=False,
verifySSL=False)
verifySSL=False,
dontSignout=True)
try:
res.attrib
except:

View file

@ -200,10 +200,11 @@ class DownloadUtils():
# THE EXCEPTIONS
except requests.exceptions.ConnectionError as e:
# Connection error
self.logMsg("Server unreachable at: %s" % url, -1)
self.logMsg(e, 2)
# Make the addon aware of status
window('emby_online', value="false")
if dontSignout is False:
self.logMsg("Server unreachable at: %s" % url, -1)
self.logMsg(e, 2)
# Make the addon aware of status
window('emby_online', value="false")
return False
except requests.exceptions.ConnectTimeout as e: