mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix: 优先使用id作为cache key避免key冲突
This commit is contained in:
@@ -52,7 +52,7 @@ class DoubanCache(metaclass=Singleton):
|
|||||||
获取缓存KEY
|
获取缓存KEY
|
||||||
"""
|
"""
|
||||||
return f"[{meta.type.value if meta.type else '未知'}]" \
|
return f"[{meta.type.value if meta.type else '未知'}]" \
|
||||||
f"{meta.name or meta.doubanid}-{meta.year}-{meta.begin_season}"
|
f"{meta.doubanid or meta.name}-{meta.year}-{meta.begin_season}"
|
||||||
|
|
||||||
def get(self, meta: MetaBase):
|
def get(self, meta: MetaBase):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class TmdbCache(metaclass=Singleton):
|
|||||||
"""
|
"""
|
||||||
获取缓存KEY
|
获取缓存KEY
|
||||||
"""
|
"""
|
||||||
return f"[{meta.type.value if meta.type else '未知'}]{meta.name or meta.tmdbid}-{meta.year}-{meta.begin_season}"
|
return f"[{meta.type.value if meta.type else '未知'}]{meta.tmdbid or meta.name}-{meta.year}-{meta.begin_season}"
|
||||||
|
|
||||||
def get(self, meta: MetaBase):
|
def get(self, meta: MetaBase):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user