diff --git a/jellyfin_kodi/jellyfin/api.py b/jellyfin_kodi/jellyfin/api.py index d1efceea..6771f682 100644 --- a/jellyfin_kodi/jellyfin/api.py +++ b/jellyfin_kodi/jellyfin/api.py @@ -259,7 +259,7 @@ class API(object): def check_companion_installed(self): try: - self._get("/Jellyfin.Plugin.KodiSyncQueue/GetServerDateTime") + self._get("Jellyfin.Plugin.KodiSyncQueue/GetServerDateTime") return True except Exception: return False diff --git a/jellyfin_kodi/jellyfin/http.py b/jellyfin_kodi/jellyfin/http.py index 866ac7f8..a3027ca4 100644 --- a/jellyfin_kodi/jellyfin/http.py +++ b/jellyfin_kodi/jellyfin/http.py @@ -135,6 +135,14 @@ class HTTP(object): 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. LOG.error("--[ 500 response ] %s", error)