mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Remove __shortcuts__ from lib/jellyfin/core/http.py
This commit is contained in:
parent
31aa2073ad
commit
97fe6a6944
2 changed files with 1 additions and 9 deletions
|
@ -89,7 +89,7 @@ class JellyfinClient(object):
|
||||||
return self.config[key.replace('config/', "", 1)] if "/" in key else self.config
|
return self.config[key.replace('config/', "", 1)] if "/" in key else self.config
|
||||||
|
|
||||||
elif key.startswith('http'):
|
elif key.startswith('http'):
|
||||||
return self.http.__shortcuts__(key.replace('http/', "", 1))
|
return self.http.request
|
||||||
|
|
||||||
elif key.startswith('websocket'):
|
elif key.startswith('websocket'):
|
||||||
return self.wsc.__shortcuts__(key.replace('websocket/', "", 1))
|
return self.wsc.__shortcuts__(key.replace('websocket/', "", 1))
|
||||||
|
|
|
@ -26,14 +26,6 @@ class HTTP(object):
|
||||||
self.client = client
|
self.client = client
|
||||||
self.config = client['config']
|
self.config = client['config']
|
||||||
|
|
||||||
def __shortcuts__(self, key):
|
|
||||||
LOG.debug("__shortcuts__(%r)", key)
|
|
||||||
|
|
||||||
if key == "request":
|
|
||||||
return self.request
|
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
def start_session(self):
|
def start_session(self):
|
||||||
|
|
||||||
self.session = requests.Session()
|
self.session = requests.Session()
|
||||||
|
|
Loading…
Reference in a new issue