Update cli.py

Bugfix - Multi video files handing
This commit is contained in:
perseron 2022-11-10 18:33:33 +01:00 committed by Miguel Piedrafita
parent 8a572fc3b3
commit b862a64ffa

View File

@ -82,10 +82,10 @@ 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(