mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Renamed function for better clarity
This commit is contained in:
parent
e5cde15ad2
commit
298c8b6f25
2 changed files with 3 additions and 3 deletions
|
@ -422,7 +422,7 @@ class API(object):
|
||||||
return response.json()
|
return response.json()
|
||||||
else:
|
else:
|
||||||
LOG.error("Failed to login to server with status code: "+str(response.status_code))
|
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)
|
LOG.debug(headers)
|
||||||
|
|
||||||
return {}
|
return {}
|
||||||
|
|
|
@ -59,7 +59,7 @@ class ConnectionManager(object):
|
||||||
|
|
||||||
# Clone the credentials
|
# Clone the credentials
|
||||||
credentials = self.credentials.get()
|
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
|
if not found_servers and not credentials['Servers']: # back out right away, no point in continuing
|
||||||
LOG.info("Found no servers")
|
LOG.info("Found no servers")
|
||||||
|
@ -245,7 +245,7 @@ class ConnectionManager(object):
|
||||||
LOG.exception("Error trying to find servers: %s", e)
|
LOG.exception("Error trying to find servers: %s", e)
|
||||||
return servers
|
return servers
|
||||||
|
|
||||||
def _find_servers(self, found_servers):
|
def process_found_servers(self, found_servers):
|
||||||
|
|
||||||
servers = []
|
servers = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue