Skip to content

Commit

Permalink
Update subgen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Oct 26, 2023
1 parent 1a95269 commit a6bd062
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subgen/subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,15 @@ def is_video_file(file_path):
return False

def transcribe_existing():
print("Starting to search folders to see if we need to create subtitles.")
for path in transcribe_folders:
for root, dirs, files in os.walk(path):
for file in files:
file_path = os.path.join(root, file)
if is_video_file(file_path):
threading.Thread(target=add_file_for_transcription, args=(file_path, False)).start()

print("Finished queueing files for transcription")
print("Finished searching and queueing files for transcription")

if transcribe_folders:
transcribe_folders = transcribe_folders.split(",")
Expand Down

0 comments on commit a6bd062

Please sign in to comment.