From d42bd1428823f37bfc152e77cce9863a211b486c Mon Sep 17 00:00:00 2001 From: Akimio521 Date: Fri, 8 Nov 2024 10:35:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=85=88=E4=BD=BF=E7=94=A8id?= =?UTF-8?q?=E4=BD=9C=E4=B8=BAcache=20key=E9=81=BF=E5=85=8Dkey=E5=86=B2?= =?UTF-8?q?=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/douban/douban_cache.py | 2 +- app/modules/themoviedb/tmdb_cache.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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): """