mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
abort download if server is not set correctly.
This commit is contained in:
parent
b235046ea6
commit
1f34e043ec
1 changed files with 4 additions and 0 deletions
|
@ -216,6 +216,10 @@ class DownloadUtils(object):
|
||||||
self._ensure_server(server_id)
|
self._ensure_server(server_id)
|
||||||
server = self.session if server_id is None else self.servers[server_id]
|
server = self.session if server_id is None else self.servers[server_id]
|
||||||
|
|
||||||
|
if server is None or server.get("Server", None) is None or server.get("UserId", None) is None:
|
||||||
|
log.info("Aborting download, Server Details Error: %s", server)
|
||||||
|
return None
|
||||||
|
|
||||||
if server_id is None and self.session_requests is not None: # Main server
|
if server_id is None and self.session_requests is not None: # Main server
|
||||||
session = self.session_requests
|
session = self.session_requests
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue