From 298c8b6f25551824654d1e527e3cf690f4347874 Mon Sep 17 00:00:00 2001 From: Abby Gourlay Date: Fri, 6 Mar 2020 22:57:13 +0000 Subject: [PATCH] Renamed function for better clarity --- jellyfin_kodi/jellyfin/api.py | 2 +- jellyfin_kodi/jellyfin/connection_manager.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jellyfin_kodi/jellyfin/api.py b/jellyfin_kodi/jellyfin/api.py index 049e6035..fbae8fc1 100644 --- a/jellyfin_kodi/jellyfin/api.py +++ b/jellyfin_kodi/jellyfin/api.py @@ -422,7 +422,7 @@ class API(object): return response.json() else: LOG.error("Failed to login to server with status code: "+str(response.status_code)) - LOG.error(response.text) + LOG.error("Server Response:\n"+str(response.content)) LOG.debug(headers) return {} diff --git a/jellyfin_kodi/jellyfin/connection_manager.py b/jellyfin_kodi/jellyfin/connection_manager.py index e66a763f..afed1717 100644 --- a/jellyfin_kodi/jellyfin/connection_manager.py +++ b/jellyfin_kodi/jellyfin/connection_manager.py @@ -59,7 +59,7 @@ class ConnectionManager(object): # Clone the credentials credentials = self.credentials.get() - found_servers = self._find_servers(self._server_discovery()) + found_servers = self.process_found_servers(self._server_discovery()) if not found_servers and not credentials['Servers']: # back out right away, no point in continuing LOG.info("Found no servers") @@ -245,7 +245,7 @@ class ConnectionManager(object): LOG.exception("Error trying to find servers: %s", e) return servers - def _find_servers(self, found_servers): + def process_found_servers(self, found_servers): servers = []