feat(cli): 新增 --rename-only,并把综艺期名尾巴做成改名时保留
- --rename-only:只做重命名,跳过字幕抽取/广告清理/音轨扫描。 整库改名时 auto 模式会顺带抽内嵌 ASS(每个 2 分钟),本次回溯因此中断过一次 - renamer 保留 <规范名>-YYYYMMDD.期名 的尾巴:技术标签变化会重算前缀, 之前会把期名整段丢掉(WEB-DL 里的连字符不能当作分隔符) - 已按新标签回溯全库:动漫电影 117、动漫节目 92、电影 404、电视节目 3309、 综艺 603 条重命名,0 错误、0 冲突副本
This commit is contained in:
@@ -222,7 +222,7 @@ class MediaPipeline:
|
||||
else:
|
||||
log.debug(f"✨ [完美豁免] {f.name} 已达最高工业标准,直接放行~")
|
||||
|
||||
if self.args.mode != "clean-ads":
|
||||
if self.args.mode != "clean-ads" and not getattr(self.args, "rename_only", False):
|
||||
# 文本字幕(ASS / SRT)外置化只对必须转码的片源做:
|
||||
# 直传片源的内嵌字幕客户端能直接渲染,不需要外挂副本。
|
||||
# 显式 extract-subs 或 --extract-internal 视为强制,不受此限制。
|
||||
@@ -264,7 +264,9 @@ class MediaPipeline:
|
||||
if config.EXTRACT_FONTS and want_text_subs:
|
||||
SubtitleService.scan_fonts(f, self.task_mgr, dest_dir)
|
||||
|
||||
if self.args.mode != "extract-subs" and not skip_heavy:
|
||||
if (self.args.mode != "extract-subs" and not skip_heavy
|
||||
|
||||
and not getattr(self.args, "rename_only", False)):
|
||||
MetadataService.scan_ads(f, self.task_mgr)
|
||||
MetadataService.scan_audio_tracks(f, self.task_mgr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user