Update subgen.py

Added below suggestions from JaiZed (https://github.com/JaiZed/subgen)
check if existing SDH subtitle is there, added /batch endpoint, more elegant forceLanguage implementation.
This commit is contained in:
McCloudS
2024-02-10 13:16:36 -07:00
committed by GitHub
parent f7b1bef2cc
commit 5004321cb9

View File

@@ -314,7 +314,7 @@ def gen_subtitles(file_path: str, transcribe_or_translate_str: str, front=True,
message = f"{file_path} already has a SDH subtitle created for this, skipping it"
if message != None:
print(message)
#return message
return message
if front:
files_to_transcribe.insert(0, file_path)