Skip to content

Commit

Permalink
Update subgen.py
Browse files Browse the repository at this point in the history
Some error checking for transcribe_exiting()
  • Loading branch information
McCloudS authored Feb 5, 2024
1 parent 6a17b1b commit 0447d6a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions subgen/subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,10 @@ def transcribe_existing():
for path in transcribe_folders:
logging.debug(path)
for root, dirs, files in os.walk(path):
for file in files:
file_path = os.path.join(root, file)
gen_subtitles(path_mapping(file_path), transcribe_or_translate, False)
if files:
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")

Expand Down

0 comments on commit 0447d6a

Please sign in to comment.