From 02954e2f2aa2c04aff720ea88bc83da845cd5cb3 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Mon, 5 Feb 2024 13:39:54 -0700 Subject: [PATCH] Update subgen.py --- subgen/subgen.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/subgen/subgen.py b/subgen/subgen.py index a15d1d1..3480803 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -478,10 +478,9 @@ def transcribe_existing(): for path in transcribe_folders: logging.debug(path) for root, dirs, files in os.walk(path): - if files: - for file in files: - file_path = os.path.join(root, file) - gen_subtitles(path_mapping(file_path), transcribe_or_translate, False) + for file in files: + file_path = os.path.join(root, file) + gen_subtitles(path_mapping(file_path), transcribe_or_translate, False) print("Finished searching and queueing files for transcription")