From 40fa6885261ddf77eeceb04b0181751d99caee00 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 14 Jan 2019 01:21:07 -0600 Subject: [PATCH] Fix if server is selected but unavailable --- resources/lib/emby/core/connection_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/emby/core/connection_manager.py b/resources/lib/emby/core/connection_manager.py index 96e3207f..3b56719e 100644 --- a/resources/lib/emby/core/connection_manager.py +++ b/resources/lib/emby/core/connection_manager.py @@ -359,7 +359,7 @@ class ConnectionManager(object): if first_server is not None and first_server['DateLastAccessed'] != "2001-01-01T00:00:00Z": result = self.connect_to_server(first_server, options) - if result['State'] == CONNECTION_STATE['SignedIn']: + if result['State'] in (CONNECTION_STATE['SignedIn'], CONNECTION_STATE['Unavailable']): return result # Return loaded credentials if exists