Don't de-authorize if several PMS are present
This commit is contained in:
parent
2806c8002a
commit
9a049854dc
2 changed files with 11 additions and 4 deletions
|
@ -389,7 +389,8 @@ class DownloadUtils():
|
||||||
|
|
||||||
elif status not in ("401", "Auth"):
|
elif status not in ("401", "Auth"):
|
||||||
# Tell userclient token has been revoked.
|
# Tell userclient token has been revoked.
|
||||||
self.logMsg('Setting emby_serverStatus to 401')
|
self.logMsg('Error 401 contacting %s' % url, 0)
|
||||||
|
self.logMsg('Setting emby_serverStatus to 401', 0)
|
||||||
utils.window('emby_serverStatus', value="401")
|
utils.window('emby_serverStatus', value="401")
|
||||||
self.logMsg("HTTP Error: %s" % e, 0)
|
self.logMsg("HTTP Error: %s" % e, 0)
|
||||||
xbmcgui.Dialog().notification(
|
xbmcgui.Dialog().notification(
|
||||||
|
|
|
@ -144,9 +144,15 @@ class plexgdm:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
media_server=self.server_list[0]['server']
|
for server in self.server_list:
|
||||||
media_port=self.server_list[0]['port']
|
if server['uuid'] == window('plex_machineIdentifier'):
|
||||||
scheme = self.server_list[0]['protocol']
|
media_server = server['server']
|
||||||
|
media_port = server['port']
|
||||||
|
scheme = server['protocol']
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
self.__printDebug("Did not find our server!", 2)
|
||||||
|
return False
|
||||||
|
|
||||||
self.__printDebug("Checking server [%s] on port [%s]" % (media_server, media_port) ,2)
|
self.__printDebug("Checking server [%s] on port [%s]" % (media_server, media_port) ,2)
|
||||||
client_result = self.download(
|
client_result = self.download(
|
||||||
|
|
Loading…
Reference in a new issue