fix tv动漫分类不生效

This commit is contained in:
thsrite 2024-03-10 09:27:48 +08:00 committed by GitHub
parent 9b9ae9401e
commit 4510382f74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)