mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-31 05:16:13 +00:00
Validate token returns dict no matter what
This commit is contained in:
parent
de95d23e5a
commit
9c11dbc113
2 changed files with 4 additions and 5 deletions
|
@ -434,7 +434,7 @@ class API(object):
|
|||
if response.status_code == 200:
|
||||
return response.json()
|
||||
else:
|
||||
return response.status_code
|
||||
return { 'Status_Code': response.status_code }
|
||||
|
||||
def get_public_info(self, server_address):
|
||||
response = self.send_request(server_address, "system/info/public")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue