__init__.py - remove __getitem__

This commit is contained in:
TrueTechy 2019-09-09 01:52:30 +01:00
parent 520e8f6db2
commit 789e1856de

View file

@ -109,12 +109,7 @@ class Jellyfin(object):
@ensure_client()
def __getattr__(self, 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):
self.client[self.server_id] = JellyfinClient()