mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-07-27 16:57:32 +00:00
Cleanup __shortcuts__ in client.py and associated code (#66)
* client.py - remove "connected" * client.py - remove "config" & configuration.py - removed shortcuts and get/set item functions * client.py - remove "auth" & connection_manager.py - remove __shortcuts__ & __getitem__ * client.py - remove "auth" & connection_manager.py - remove __shortcuts__ & __getitem__ * client.py - remove "callback" * client.py - remove "websocket" and __getitem__ & ws_client.py - remove __shortcuts__ * Fix rebase mess-up
This commit is contained in:
parent
138451d516
commit
4049023559
19 changed files with 134 additions and 185 deletions
|
@ -25,27 +25,6 @@ class Config(object):
|
|||
self.data = {}
|
||||
self.http()
|
||||
|
||||
def __shortcuts__(self, key):
|
||||
LOG.debug("__shortcuts__(%r)", key)
|
||||
|
||||
if key == "auth":
|
||||
return self.auth
|
||||
elif key == "app":
|
||||
return self.app
|
||||
elif key == "http":
|
||||
return self.http
|
||||
elif key == "data":
|
||||
return self
|
||||
|
||||
return
|
||||
|
||||
def __getitem__(self, key):
|
||||
LOG.debug("__getitem__(%r)", key)
|
||||
return self.data.get(key, self.__shortcuts__(key))
|
||||
|
||||
def __setitem__(self, key, value):
|
||||
self.data[key] = value
|
||||
|
||||
def app(self, name, version, device_name, device_id, capabilities=None, device_pixel_ratio=None):
|
||||
LOG.info("Begin app constructor.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue