Revert local cache of people. A better solution was found.

This commit is contained in:
Chuddah 2020-02-18 02:31:47 +00:00
commit 09288c542b

View file

@ -15,16 +15,6 @@ LOG = logging.getLogger("JELLYFIN." + __name__)
##################################################################################################
def cache(fn):
CACHE = {}
def cache_wrapper(*args):
try:
result = CACHE[args]
except KeyError:
result = fn(*args)
CACHE[args] = result
return result
return cache_wrapper
class Kodi(object):
@ -165,7 +155,6 @@ class Kodi(object):
return person_id
@cache
def get_person(self, *args):
try: