From 5004321cb925357d0417d16d36491f4d84e2364d Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Sat, 10 Feb 2024 13:16:36 -0700 Subject: [PATCH] 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. --- subgen/subgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgen/subgen.py b/subgen/subgen.py index 7139a72..d05402f 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -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)