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

This commit is contained in:
McCloudS
2024-06-04 07:11:22 -06:00
committed by GitHub
parent 7124fd55ca
commit 5b5fba3d82

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"
elif os.path.exists(file_path.rsplit('.', 1)[0] + subextensionSDH):
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:
logging.info(message)
return