mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
__init__.py - remove __getitem__
This commit is contained in:
parent
520e8f6db2
commit
789e1856de
1 changed files with 1 additions and 6 deletions
|
@ -109,12 +109,7 @@ class Jellyfin(object):
|
||||||
@ensure_client()
|
@ensure_client()
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
return getattr(self.client[self.server_id], name)
|
return getattr(self.client[self.server_id], name)
|
||||||
|
|
||||||
@ensure_client()
|
|
||||||
def __getitem__(self, key):
|
|
||||||
LOG.debug("__getitem__(%r)", key)
|
|
||||||
return self.client[self.server_id][key]
|
|
||||||
|
|
||||||
def construct(self):
|
def construct(self):
|
||||||
|
|
||||||
self.client[self.server_id] = JellyfinClient()
|
self.client[self.server_id] = JellyfinClient()
|
||||||
|
|
Loading…
Reference in a new issue