feat:二级分类支持发行年份

This commit is contained in:
jxxghp
2025-05-15 15:52:42 +08:00
parent ba2293eb30
commit 9d02206fd9
2 changed files with 7 additions and 1 deletions

View File

@@ -115,7 +115,12 @@ class CategoryHelper(metaclass=Singleton):
for attr, value in item.items():
if not value:
continue
info_value = tmdb_info.get(attr)
if attr == "release_year":
info_value = tmdb_info.get("release_date") or tmdb_info.get("first_air_date")
if info_value:
info_value = str(info_value)[:4]
else:
info_value = tmdb_info.get(attr)
if not info_value:
match_flag = False
continue