From 40909328aacd08c7ce7d39eaf04a25e82b16bd7a Mon Sep 17 00:00:00 2001 From: TrueTechy Date: Sat, 7 Sep 2019 17:11:56 +0100 Subject: [PATCH] client.py - remove "auth" & connection_manager.py - remove __shortcuts__ & __getitem__ --- resources/lib/jellyfin/client.py | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/resources/lib/jellyfin/client.py b/resources/lib/jellyfin/client.py index c391140c..593a4c3e 100644 --- a/resources/lib/jellyfin/client.py +++ b/resources/lib/jellyfin/client.py @@ -80,26 +80,4 @@ class JellyfinClient(object): def stop(self): self.wsc.stop_client() - self.http.stop_session() - - def __getitem__(self, key): - LOG.debug("__getitem__(%r)", key) - -<<<<<<< HEAD - if key.startswith('config'): - 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)) - - elif key.startswith('websocket'): -======= - if key.startswith('websocket'): ->>>>>>> 66679ce... client.py - remove "config" & configuration.py - removed shortcuts and get/set item functions - return self.wsc.__shortcuts__(key.replace('websocket/', "", 1)) - - elif key.startswith('callback'): - return self.callback_ws if 'ws' in key else self.callback - - elif key.startswith('auth'): - return self.auth.__shortcuts__(key.replace('auth/', "", 1)) \ No newline at end of file + self.http.stop_session() \ No newline at end of file