From b862a64ffa9570acc9588e6cb3e419053acabb9b Mon Sep 17 00:00:00 2001 From: perseron <117822804+perseron@users.noreply.github.com> Date: Thu, 10 Nov 2022 18:33:33 +0100 Subject: [PATCH] Update cli.py Bugfix - Multi video files handing --- auto_subtitle/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_subtitle/cli.py b/auto_subtitle/cli.py index 088c011..a58d14f 100644 --- a/auto_subtitle/cli.py +++ b/auto_subtitle/cli.py @@ -82,12 +82,12 @@ def get_audio(paths): 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 = {} 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") - + print( f"Generating subtitles for {filename(path)}... This might take a while." )