From e58b65425b23384c5337f21f8c1ee4c632ed8a80 Mon Sep 17 00:00:00 2001 From: TrueTechy Date: Wed, 6 Nov 2019 23:43:13 +0000 Subject: [PATCH] Remove WOL Code --- resources/lib/jellyfin/core/connection_manager.py | 11 +---------- resources/lib/jellyfin/core/credentials.py | 3 --- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/resources/lib/jellyfin/core/connection_manager.py b/resources/lib/jellyfin/core/connection_manager.py index 3658ca63..d3f38713 100644 --- a/resources/lib/jellyfin/core/connection_manager.py +++ b/resources/lib/jellyfin/core/connection_manager.py @@ -174,8 +174,6 @@ class ConnectionManager(object): if CONNECTION_MODE['Local'] not in tests: tests.append(CONNECTION_MODE['Local']) - # TODO: begin to wake server - LOG.info("beginning connection tests") return self._test_next_connection_mode(tests, 0, server, options) @@ -322,12 +320,7 @@ class ConnectionManager(object): except Exception: LOG.exception("test failed for connection mode %s with server %s", mode, server.get('Name')) - - if enable_retry: - # TODO: wake on lan and retry - return self._test_next_connection_mode(tests, index + 1, server, options) - else: - return self._test_next_connection_mode(tests, index + 1, server, options) + return self._test_next_connection_mode(tests, index + 1, server, options) else: if self._compare_versions(self._get_min_server_version(), result['Version']) == 1: LOG.warning("minServerVersion requirement not met. Server version: %s", result['Version']) @@ -575,8 +568,6 @@ class ConnectionManager(object): if system_info.get('LocalAddress'): server['LocalAddress'] = system_info['LocalAddress'] - if 'MacAddress' in system_info: - server['WakeOnLanInfos'] = [{'MacAddress': system_info['MacAddress']}] def _on_authenticated(self, result, options={}): diff --git a/resources/lib/jellyfin/core/credentials.py b/resources/lib/jellyfin/core/credentials.py index 9c4f35a4..0b61f3dd 100644 --- a/resources/lib/jellyfin/core/credentials.py +++ b/resources/lib/jellyfin/core/credentials.py @@ -107,9 +107,6 @@ class Credentials(object): if server.get('Name'): existing['Name'] = server['Name'] - if server.get('WakeOnLanInfos'): - existing['WakeOnLanInfos'] = server['WakeOnLanInfos'] - if server.get('LastConnectionMode') is not None: existing['LastConnectionMode'] = server['LastConnectionMode']