fix(parser): 特别篇年份只对 Season 00 生效,修复正片年份被带偏
- special_years 键是 Season 00 的集号("10" => 2023 等),此前没有判断季号, 正片集号撞上特别篇集号时就被覆盖:现在就出发 S03E10 被写成 2023 (Season 03 实际是 2025) - 现在限定 str(season_num).zfill(2) == "00" 才使用 special_years - 影响面:3 部剧共 86 个正片文件被误改年份(夏目友人帐 50、现在就出发 30、 忙忙碌碌寻宝藏 6),已全部重跑纠正,复查为 0 - 新增 docs/variety-plan.md:综艺整理模式的设计草案与待确认事项
This commit is contained in:
@@ -185,9 +185,10 @@ class ParserService:
|
||||
if season_years:
|
||||
episode_year = season_years.get(season_num, fit_year)
|
||||
|
||||
# 特别篇按「本集」的播出年份:Season 00 的整体 air_date 往往是第一篇的年份
|
||||
# 特别篇按「本集」的播出年份:Season 00 的整体 air_date 往往是第一篇的年份。
|
||||
# 注意必须限定在 S00,否则正片集号会撞上特别篇集号(S03E10 撞上特别篇第 10 集)。
|
||||
special_years = (tmdb or {}).get("special_years") or {}
|
||||
if special_years.get(ep):
|
||||
if str(season_num).zfill(2) == "00" and special_years.get(ep):
|
||||
episode_year = special_years[ep]
|
||||
|
||||
prefix = f"{media_name}.S{season_num}E{ep}"
|
||||
|
||||
Reference in New Issue
Block a user