From 488bce8049a0bbd3b628ebf3d029858e9e52dc03 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Sat, 11 Oct 2025 15:08:57 -0700 Subject: [PATCH] fix path check --- src/ytdl_sub/plugins/subtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ytdl_sub/plugins/subtitles.py b/src/ytdl_sub/plugins/subtitles.py index 1566dbf3..54318512 100644 --- a/src/ytdl_sub/plugins/subtitles.py +++ b/src/ytdl_sub/plugins/subtitles.py @@ -234,7 +234,7 @@ class SubtitlesPlugin(Plugin[SubtitleOptions]): download_subtitle_file_name = entry.base_filename( ext=f"{lang}.{self.plugin_options.subtitles_type}" ) - if os.path.isfile(download_subtitle_file_name): + if os.path.isfile(Path(self.working_directory) / download_subtitle_file_name): download_subtitle_lang_file_names.append((lang, download_subtitle_file_name)) elif lang in self.plugin_options.languages_required: raise UserThrownRuntimeError(