From f745e8ee758d814e987a1406d978ee43abf533d8 Mon Sep 17 00:00:00 2001 From: mcarlton00 Date: Sat, 31 Aug 2019 20:20:10 -0400 Subject: [PATCH] Remove references to remote address from connection type logic --- resources/lib/jellyfin/core/connection_manager.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/lib/jellyfin/core/connection_manager.py b/resources/lib/jellyfin/core/connection_manager.py index b2d966a3..3c8b310a 100644 --- a/resources/lib/jellyfin/core/connection_manager.py +++ b/resources/lib/jellyfin/core/connection_manager.py @@ -25,7 +25,6 @@ CONNECTION_STATE = { } CONNECTION_MODE = { 'Local': 0, - 'Remote': 1, 'Manual': 2 } @@ -35,10 +34,9 @@ def get_server_address(server, mode): modes = { CONNECTION_MODE['Local']: server.get('LocalAddress'), - CONNECTION_MODE['Remote']: server.get('RemoteAddress'), CONNECTION_MODE['Manual']: server.get('ManualAddress') } - return modes.get(mode) or server.get('ManualAddress', server.get('LocalAddress', server.get('RemoteAddress'))) + return modes.get(mode) or server.get('ManualAddress', server.get('LocalAddress')) class ConnectionManager(object): @@ -215,8 +213,6 @@ class ConnectionManager(object): tests.append(CONNECTION_MODE['Manual']) if CONNECTION_MODE['Local'] not in tests: tests.append(CONNECTION_MODE['Local']) - if CONNECTION_MODE['Remote'] not in tests: - tests.append(CONNECTION_MODE['Remote']) # TODO: begin to wake server