Update subgen.py
Some error checking for transcribe_exiting()
This commit is contained in:
@@ -478,9 +478,10 @@ 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):
|
||||||
for file in files:
|
if files:
|
||||||
file_path = os.path.join(root, file)
|
for file in files:
|
||||||
gen_subtitles(path_mapping(file_path), transcribe_or_translate, False)
|
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")
|
print("Finished searching and queueing files for transcription")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user