From 4510382f7474be8b821314da7a8aa6537c5fa21b Mon Sep 17 00:00:00 2001 From: thsrite Date: Sun, 10 Mar 2024 09:27:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=20tv=E5=8A=A8=E6=BC=AB=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/themoviedb/category.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/themoviedb/category.py b/app/modules/themoviedb/category.py index daf2f091..ff3ff459 100644 --- a/app/modules/themoviedb/category.py +++ b/app/modules/themoviedb/category.py @@ -107,7 +107,7 @@ class CategoryHelper(metaclass=Singleton): :return: 二级分类的名称 """ genre_ids = tmdb_info.get("genre_ids") or [] - if genre_ids \ + if self._anime_categorys and genre_ids \ and set(genre_ids).intersection(set(settings.ANIME_GENREIDS)): return self.get_category(self._anime_categorys, tmdb_info) return self.get_category(self._tv_categorys, tmdb_info)