mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-11 02:46:34 +00:00
client.py - remove "auth" & connection_manager.py - remove __shortcuts__ & __getitem__
This commit is contained in:
parent
d9bb931fd8
commit
40909328aa
1 changed files with 1 additions and 23 deletions
|
|
@ -81,25 +81,3 @@ class JellyfinClient(object):
|
|||
|
||||
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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue