mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-29 00:16:06 +00:00
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:
1 parent
f7b1bef2cc
commit
5004321cb9
1 file changed
+1
-1
+1
-1
@@ -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"
|
message = f"{file_path} already has a SDH subtitle created for this, skipping it"
|
||||||
if message != None:
|
if message != None:
|
||||||
print(message)
|
print(message)
|
||||||
#return message
|
return message
|
||||||
|
|
||||||
if front:
|
if front:
|
||||||
files_to_transcribe.insert(0, file_path)
|
files_to_transcribe.insert(0, file_path)
|
||||||
|
|||||||
Reference in new issue
Block a user