mirror of
https://github.com/Nezumi-2711/auto-subtitle.git
synced 2026-09-22 13:38:41 +00:00
Update cli.py
Bugfix - Multi video files handing
This commit is contained in:
committed by
Miguel Piedrafita
parent
8a572fc3b3
commit
b862a64ffa
@@ -82,10 +82,10 @@ 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(
|
||||||
|
|||||||
Reference in New Issue
Block a user