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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user