From 97fe6a69444f7ea8c55a20665bb6b8e35291596d Mon Sep 17 00:00:00 2001 From: TrueTechy Date: Tue, 3 Sep 2019 22:39:30 +0100 Subject: [PATCH] Remove __shortcuts__ from lib/jellyfin/core/http.py --- resources/lib/jellyfin/client.py | 2 +- resources/lib/jellyfin/core/http.py | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/resources/lib/jellyfin/client.py b/resources/lib/jellyfin/client.py index e58a7bea..85b90261 100644 --- a/resources/lib/jellyfin/client.py +++ b/resources/lib/jellyfin/client.py @@ -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)) diff --git a/resources/lib/jellyfin/core/http.py b/resources/lib/jellyfin/core/http.py index 43892150..f6344ff3 100644 --- a/resources/lib/jellyfin/core/http.py +++ b/resources/lib/jellyfin/core/http.py @@ -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()