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.
This commit is contained in:
@@ -1969,6 +1969,8 @@ class YTSageApp(QMainWindow, FormatTableMixin, VideoInfoMixin): # Inherit from
|
|||||||
if self.geo_proxy_url:
|
if self.geo_proxy_url:
|
||||||
cmd.extend(["--geo-verification-proxy", 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
|
# Execute command with hidden console window on Windows
|
||||||
# Extra logic moved to src\utils\ytsage_constants.py
|
# Extra logic moved to src\utils\ytsage_constants.py
|
||||||
result = subprocess.run(cmd, capture_output=True, text=True, timeout=300, creationflags=SUBPROCESS_CREATIONFLAGS)
|
result = subprocess.run(cmd, capture_output=True, text=True, timeout=300, creationflags=SUBPROCESS_CREATIONFLAGS)
|
||||||
|
|||||||
Reference in New Issue
Block a user