feat(subtitle): 内置字幕改为导出 ASS,配置集中到 config.ini

- [Subtitles] export = ass(默认):ass 轨 -c:s copy 原样导出,其余编码转 ass;
  命名 <视频名>.internal.<lang>.ass;export = srt 时退回旧的清洗 SRT 逻辑
- [Subtitles] languages / codecs / prefer_internal 取代 [Features] 里的旧键(旧键仍兼容)
- [Run] default_mode / default_path / force_type / extract_internal 作为 CLI 默认值
- [Archive] media_root / refresh_jellyfin 供 media-archive 读取
- 语言标签优先取轨道 tags(title 含「中」即 zh-CN)
This commit is contained in:
ali
2026-11-18 22:29:15 +08:00
parent 0ae4d4c8a1
commit 61facaa75f
6 changed files with 252 additions and 91 deletions
+4
View File
@@ -12,6 +12,10 @@ class RenamerService:
@staticmethod
def scan_existing_subtitles(f_path: Path, target_stem: str, m_type: str, dest_dir: Path, task_mgr) -> bool:
# 只导出 ASS 模式下不做 SRT 转换,外挂字幕保持原样
if 'srt' not in config.SUBTITLE_EXPORT:
return False
has_external_sub = False
for sub in f_path.parent.glob("*"):
if sub.is_file() and sub.suffix.lower() in {'.srt', '.ass', '.ssa'}: