mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-23 10:11:47 +08:00
feat:二级分类支持发行年份
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user