mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 10:46:11 +00:00
Merge pull request #431 from oddstr13/pr-10.7-1
Fix some minor issues highlighted by 10.7
This commit is contained in:
commit
a51fd6b932
2 changed files with 9 additions and 1 deletions
|
@ -259,7 +259,7 @@ class API(object):
|
||||||
|
|
||||||
def check_companion_installed(self):
|
def check_companion_installed(self):
|
||||||
try:
|
try:
|
||||||
self._get("/Jellyfin.Plugin.KodiSyncQueue/GetServerDateTime")
|
self._get("Jellyfin.Plugin.KodiSyncQueue/GetServerDateTime")
|
||||||
return True
|
return True
|
||||||
except Exception:
|
except Exception:
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -135,6 +135,14 @@ class HTTP(object):
|
||||||
|
|
||||||
raise HTTPException("Unauthorized", error)
|
raise HTTPException("Unauthorized", error)
|
||||||
|
|
||||||
|
elif r.status_code == 400:
|
||||||
|
LOG.warning(error)
|
||||||
|
LOG.warning(data)
|
||||||
|
try:
|
||||||
|
LOG.warning(r.json())
|
||||||
|
except Exception:
|
||||||
|
LOG.warning(r.text)
|
||||||
|
|
||||||
elif r.status_code == 500: # log and ignore.
|
elif r.status_code == 500: # log and ignore.
|
||||||
LOG.error("--[ 500 response ] %s", error)
|
LOG.error("--[ 500 response ] %s", error)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue