From 202dd9eaeecf99a3e4cdd8fbeb430c54acb8f602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Sat, 25 Jul 2026 01:22:26 +0200 Subject: [PATCH] Fix UnboundLocalError in manual yt-dlp binary selection Unpacking getOpenFileName() into a variable named _ made _ local to select_ytdlp_path(), so the i18n _() calls earlier in the function raised UnboundLocalError before the file dialog could open, breaking manual binary selection entirely. Co-Authored-By: Claude Fable 5 --- ytsage/core/ytsage_yt_dlp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytsage/core/ytsage_yt_dlp.py b/ytsage/core/ytsage_yt_dlp.py index e9902c3..62eb4ec 100644 --- a/ytsage/core/ytsage_yt_dlp.py +++ b/ytsage/core/ytsage_yt_dlp.py @@ -429,7 +429,7 @@ class YtdlpSetupDialog(QDialog): """ ) - file_path, _ = file_dialog.getOpenFileName( + file_path, _selected_filter = file_dialog.getOpenFileName( self, _("ytdlp_setup.select_executable_title"), "", file_filter )