From bf2b4e8c32dd8dd9b3d83f143a5b06cf2080bee1 Mon Sep 17 00:00:00 2001 From: TrueTechy Date: Wed, 4 Sep 2019 00:08:41 +0100 Subject: [PATCH] Remove http shortcut from client.py __getitem__ --- resources/lib/downloader.py | 4 +--- resources/lib/jellyfin/client.py | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/resources/lib/downloader.py b/resources/lib/downloader.py index 53efc1be..03b9bc82 100644 --- a/resources/lib/downloader.py +++ b/resources/lib/downloader.py @@ -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) diff --git a/resources/lib/jellyfin/client.py b/resources/lib/jellyfin/client.py index 85b90261..7642ded8 100644 --- a/resources/lib/jellyfin/client.py +++ b/resources/lib/jellyfin/client.py @@ -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))