diff --git a/resources/lib/PlexFunctions.py b/resources/lib/PlexFunctions.py index 35dc794e..0a549981 100644 --- a/resources/lib/PlexFunctions.py +++ b/resources/lib/PlexFunctions.py @@ -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: diff --git a/resources/lib/downloadutils.py b/resources/lib/downloadutils.py index 2dd0be33..fe2ea76c 100644 --- a/resources/lib/downloadutils.py +++ b/resources/lib/downloadutils.py @@ -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: