__init__.py - remove __getitem__

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

View file

@ -110,11 +110,6 @@ class Jellyfin(object):
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()