Don't declare connection when poking PMS
This commit is contained in:
parent
53b15aa51a
commit
3d5a3e9bfb
2 changed files with 7 additions and 5 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue