mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-10 18:36:33 +00:00
Revert local cache of people. A better solution was found.
This commit is contained in:
parent
182809a862
commit
09288c542b
1 changed files with 0 additions and 11 deletions
|
|
@ -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):
|
class Kodi(object):
|
||||||
|
|
||||||
|
|
@ -165,7 +155,6 @@ class Kodi(object):
|
||||||
|
|
||||||
return person_id
|
return person_id
|
||||||
|
|
||||||
@cache
|
|
||||||
def get_person(self, *args):
|
def get_person(self, *args):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue