From 0d1eb35ba247805266fa2f309e063c9dab4aeb2d Mon Sep 17 00:00:00 2001 From: oop7 <110548351+oop7@users.noreply.github.com> Date: Wed, 21 Jan 2026 15:15:14 +0200 Subject: [PATCH] Add debug log for yt-dlp command execution Inserted a debug log statement to output the full yt-dlp command before execution. This will help diagnose issues related to command construction and subprocess invocation. --- src/gui/ytsage_gui_main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/ytsage_gui_main.py b/src/gui/ytsage_gui_main.py index 2b6598c..935d489 100644 --- a/src/gui/ytsage_gui_main.py +++ b/src/gui/ytsage_gui_main.py @@ -1969,6 +1969,8 @@ class YTSageApp(QMainWindow, FormatTableMixin, VideoInfoMixin): # Inherit from if self.geo_proxy_url: cmd.extend(["--geo-verification-proxy", self.geo_proxy_url]) + logger.debug(f"Executing yt-dlp command: {cmd}") + # Execute command with hidden console window on Windows # Extra logic moved to src\utils\ytsage_constants.py result = subprocess.run(cmd, capture_output=True, text=True, timeout=300, creationflags=SUBPROCESS_CREATIONFLAGS)