client.py - remove "auth" & connection_manager.py - remove __shortcuts__ & __getitem__

This commit is contained in:
TrueTechy 2019-09-07 17:11:56 +01:00
commit 40909328aa

View file

@ -81,25 +81,3 @@ class JellyfinClient(object):
self.wsc.stop_client() self.wsc.stop_client()
self.http.stop_session() 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))