mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Remove http shortcut from client.py __getitem__
This commit is contained in:
parent
97fe6a6944
commit
bf2b4e8c32
2 changed files with 1 additions and 6 deletions
|
@ -40,9 +40,7 @@ def browse_info():
|
|||
|
||||
def _http(action, url, request={}, server_id=None):
|
||||
request.update({'url': url, 'type': action})
|
||||
|
||||
return Jellyfin(server_id)['http/request'](request)
|
||||
|
||||
return Jellyfin(server_id).http.request(request)
|
||||
|
||||
def _get(handler, params=None, server_id=None):
|
||||
return _http("GET", get_jellyfinserver_url(handler), {'params': params}, server_id)
|
||||
|
|
|
@ -88,9 +88,6 @@ class JellyfinClient(object):
|
|||
if key.startswith('config'):
|
||||
return self.config[key.replace('config/', "", 1)] if "/" in key else self.config
|
||||
|
||||
elif key.startswith('http'):
|
||||
return self.http.request
|
||||
|
||||
elif key.startswith('websocket'):
|
||||
return self.wsc.__shortcuts__(key.replace('websocket/', "", 1))
|
||||
|
||||
|
|
Loading…
Reference in a new issue