diff --git a/app/modules/douban/douban_cache.py b/app/modules/douban/douban_cache.py index 63e3d30a..a5fafbd5 100644 --- a/app/modules/douban/douban_cache.py +++ b/app/modules/douban/douban_cache.py @@ -52,7 +52,7 @@ class DoubanCache(metaclass=Singleton): 获取缓存KEY """ 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): """ diff --git a/app/modules/themoviedb/tmdb_cache.py b/app/modules/themoviedb/tmdb_cache.py index 1c1a0d76..ba414e75 100644 --- a/app/modules/themoviedb/tmdb_cache.py +++ b/app/modules/themoviedb/tmdb_cache.py @@ -50,7 +50,7 @@ class TmdbCache(metaclass=Singleton): """ 获取缓存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): """