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:
@@ -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'}:
|
||||
|
||||
Reference in New Issue
Block a user