From 789e1856de04d078c3b71f9510b890328ff51d12 Mon Sep 17 00:00:00 2001 From: TrueTechy Date: Mon, 9 Sep 2019 01:52:30 +0100 Subject: [PATCH] __init__.py - remove __getitem__ --- resources/lib/jellyfin/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/resources/lib/jellyfin/__init__.py b/resources/lib/jellyfin/__init__.py index 63a493eb..591f2ee7 100644 --- a/resources/lib/jellyfin/__init__.py +++ b/resources/lib/jellyfin/__init__.py @@ -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()