From 9bc8b39085bf2715a03d18a1b5a3c01ea04502ea Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Mon, 3 Feb 2025 11:43:10 -0700 Subject: [PATCH] fix for lrc files --- subgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgen.py b/subgen.py index a5cb93f..4e71c8e 100644 --- a/subgen.py +++ b/subgen.py @@ -1075,7 +1075,7 @@ def should_skip_file(file_path: str, transcribe_language: LanguageCode) -> bool: # 1. Check for existing LRC files for audio files if isAudioFileExtension(file_ext) and lrc_for_audio_files: - lrc_path = f"{file_name}.lrc" + lrc_path = os.path.join(os.path.dirname(file_path), f"{file_name}.lrc") if os.path.exists(lrc_path): logging.info(f"Skipping {base_name}: LRC file already exists at {lrc_path}") return True