Remove http shortcut from client.py __getitem__

This commit is contained in:
TrueTechy 2019-09-04 00:08:41 +01:00
parent 97fe6a6944
commit bf2b4e8c32
2 changed files with 1 additions and 6 deletions

View file

@ -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)

View file

@ -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))