From 52437c9d1834af7cff70fe596b9537e0607f1a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=AF=E5=A4=A7=E4=BE=A0?= Date: Fri, 9 Jan 2026 20:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E8=AF=AD=E8=A8=80=E7=BC=93=E5=AD=98tm?= =?UTF-8?q?db=E5=85=83=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/themoviedb/tmdb_cache.py | 2 +- app/modules/themoviedb/tmdbapi.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/modules/themoviedb/tmdb_cache.py b/app/modules/themoviedb/tmdb_cache.py index d753ced7..feb0c621 100644 --- a/app/modules/themoviedb/tmdb_cache.py +++ b/app/modules/themoviedb/tmdb_cache.py @@ -50,7 +50,7 @@ class TmdbCache(metaclass=WeakSingleton): """ 获取缓存KEY """ - return f"[{meta.type.value if meta.type else '未知'}]{meta.tmdbid or meta.name}-{meta.year}-{meta.begin_season}" + return f"[{meta.type.value if meta.type else '未知'}][{settings.TMDB_LOCALE}]{meta.tmdbid or meta.name}-{meta.year}-{meta.begin_season}" def get(self, meta: MetaBase): """ diff --git a/app/modules/themoviedb/tmdbapi.py b/app/modules/themoviedb/tmdbapi.py index 9503f166..417a5931 100644 --- a/app/modules/themoviedb/tmdbapi.py +++ b/app/modules/themoviedb/tmdbapi.py @@ -826,7 +826,7 @@ class TmdbApi: # 转换多语种标题 self.__update_tmdbinfo_extra_title(tmdb_info) # 转换中文标题 - if settings.TMDB_LOCALE == "zh": + if self.tmdb.language in ("zh", "zh-CN"): self.__update_tmdbinfo_cn_title(tmdb_info) return tmdb_info @@ -2134,7 +2134,7 @@ class TmdbApi: # 转换多语种标题 self.__update_tmdbinfo_extra_title(tmdb_info) # 转换中文标题 - if settings.TMDB_LOCALE == "zh": + if self.tmdb.language in ("zh", "zh-CN"): self.__update_tmdbinfo_cn_title(tmdb_info) return tmdb_info