mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Handle unexpected response
API seems to return text/html response for playeditems
This commit is contained in:
parent
fc05e83d90
commit
b996037e4e
1 changed files with 4 additions and 1 deletions
|
@ -238,7 +238,10 @@ class DownloadUtils():
|
||||||
self.logMsg("====== 200 Success ======", 2)
|
self.logMsg("====== 200 Success ======", 2)
|
||||||
return r
|
return r
|
||||||
except:
|
except:
|
||||||
self.logMsg("Unable to convert the response for: %s" % url, 1)
|
if r.headers['content-type'] == "text/html":
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
self.logMsg("Unable to convert the response for: %s" % url, 1)
|
||||||
else:
|
else:
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue