refactor(preflight): 移除音轨判定与补轨/改默认音轨相关代码

- 不再检测默认音轨、不再提供 add_ac3 / fix_default_audio / 改默认标志
- 音频信息仅保留在报告 audio_codecs 列,不参与 verdict
- 同步移除 [Compatibility] auto_add_ac3 / direct_audio / auto_fix_default_audio /
  backup_dir / refresh_jellyfin_after_prep 及 TaskManager 的 prepare 阶段
- DV Profile 7 不再算 TRANSCODE(视频可去 DV 元数据直传),仅 DV5 需 tonemap
This commit is contained in:
ali
2026-11-19 11:13:07 +08:00
parent 110dae7862
commit 38a0e5832c
5 changed files with 390 additions and 522 deletions
+1 -17
View File
@@ -43,10 +43,7 @@ class MediaPipeline:
if self.task_mgr.preview_and_confirm(self.auto_execute):
if not self.auto_execute: log.info("⚙️ 正在执行物理任务...")
had_prepare = bool(self.task_mgr.tasks.get('prepare'))
self.task_mgr.execute()
if had_prepare:
PreflightService.refresh_jellyfin()
log.info("🎉 流水线操作圆满落地!")
elif not self.auto_execute:
log.info("💤 任务已由用户取消。")
@@ -103,22 +100,9 @@ class MediaPipeline:
log.error(f"⛔ 无法直传,跳过入库: {f.name} | {'; '.join(pf.reasons)}")
continue
audio_tag = None
if 'add_ac3' in pf.actions:
if config.AUTO_ADD_AC3:
tmp = f.with_name(f".{f.stem}.ac3prep{f.suffix}")
self.task_mgr.add_prepare(
f"[补 AC3 音轨] {f.name}",
PreflightService.prepare_ac3,
(f, tmp),
)
audio_tag = 'AC3.5.1'
else:
log.warning(f"🟡 [需要补 AC3] {f.name} | auto_add_ac3=false,本次仅提示")
is_multi = (m_type == "movie" and dir_video_counts.get(f.parent, 0) > 1)
target_stem, folder_name = ParserService.get_target_info(
f, m_type, title, year, season_num, is_multi, audio_tag=audio_tag)
f, m_type, title, year, season_num, is_multi)
# 集数防撞防爆锁
if m_type == "tv":