Remove __shortcuts__ from lib/jellyfin/core/http.py

This commit is contained in:
TrueTechy 2019-09-03 22:39:30 +01:00
parent 31aa2073ad
commit 97fe6a6944
2 changed files with 1 additions and 9 deletions

View File

@ -89,7 +89,7 @@ class JellyfinClient(object):
return self.config[key.replace('config/', "", 1)] if "/" in key else self.config
elif key.startswith('http'):
return self.http.__shortcuts__(key.replace('http/', "", 1))
return self.http.request
elif key.startswith('websocket'):
return self.wsc.__shortcuts__(key.replace('websocket/', "", 1))

View File

@ -26,14 +26,6 @@ class HTTP(object):
self.client = client
self.config = client['config']
def __shortcuts__(self, key):
LOG.debug("__shortcuts__(%r)", key)
if key == "request":
return self.request
return
def start_session(self):
self.session = requests.Session()