don't run on files that already have LRCs generated.

This commit is contained in:
McCloudS authored and GitHub committed 2024-06-04 07:11:22 -06:00
1 parent 7124fd55ca
commit 5b5fba3d82
1 file changed
+2
+2
View File
@@ -580,6 +580,8 @@ def gen_subtitles_queue(file_path: str, transcription_type: str, force_language=
message = f"{file_path} already has a subtitle created for this, skipping it" message = f"{file_path} already has a subtitle created for this, skipping it"
elif os.path.exists(file_path.rsplit('.', 1)[0] + subextensionSDH): elif os.path.exists(file_path.rsplit('.', 1)[0] + subextensionSDH):
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"
elif os.path.exists(file_path.rsplit('.', 1)[0] + '.lrc'):
message = f"{file_path} already has a LRC created for this, skipping it"
if message: if message:
logging.info(message) logging.info(message)
return return