Update subgen.py

Some error checking for transcribe_exiting()
This commit is contained in:
McCloudS
2024-02-05 11:50:47 -07:00
committed by GitHub
parent 6a17b1b935
commit 0447d6a805

View File

@@ -478,6 +478,7 @@ def transcribe_existing():
for path in transcribe_folders: for path in transcribe_folders:
logging.debug(path) logging.debug(path)
for root, dirs, files in os.walk(path): for root, dirs, files in os.walk(path):
if files:
for file in files: for file in files:
file_path = os.path.join(root, file) file_path = os.path.join(root, file)
gen_subtitles(path_mapping(file_path), transcribe_or_translate, False) gen_subtitles(path_mapping(file_path), transcribe_or_translate, False)