镜像自地址
https://github.com/karl0ss/bazarr-ai-sub-generator.git
已同步 2025-11-07 18:10:59 +00:00
Update cli.py
Bugfix - Multi video files handing
这个提交包含在:
父节点
8a572fc3b3
当前提交
b862a64ffa
@ -82,12 +82,12 @@ def get_audio(paths):
|
|||||||
|
|
||||||
|
|
||||||
def get_subtitles(audio_paths: list, output_srt: bool, output_dir: str, transcribe: callable):
|
def get_subtitles(audio_paths: list, output_srt: bool, output_dir: str, transcribe: callable):
|
||||||
srt_path = output_dir if output_srt else tempfile.gettempdir()
|
|
||||||
subtitles_path = {}
|
subtitles_path = {}
|
||||||
|
|
||||||
for path, audio_path in audio_paths.items():
|
for path, audio_path in audio_paths.items():
|
||||||
|
srt_path = output_dir if output_srt else tempfile.gettempdir()
|
||||||
srt_path = os.path.join(srt_path, f"{filename(path)}.srt")
|
srt_path = os.path.join(srt_path, f"{filename(path)}.srt")
|
||||||
|
|
||||||
print(
|
print(
|
||||||
f"Generating subtitles for {filename(path)}... This might take a while."
|
f"Generating subtitles for {filename(path)}... This might take a while."
|
||||||
)
|
)
|
||||||
|
|||||||
正在加载...
x
在新工单中引用
屏蔽一个用户