Increase subprocess timeout to 300 seconds

Extended the timeout for the subprocess running yt-dlp from 60 to 300 seconds to accommodate longer-running download or processing tasks.
This commit is contained in:
oop7
2026-01-17 21:01:52 +02:00
parent 26d063327c
commit c16e84105e
+1 -1
View File
@@ -1969,7 +1969,7 @@ class YTSageApp(QMainWindow, FormatTableMixin, VideoInfoMixin): # Inherit from
# 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=60, creationflags=SUBPROCESS_CREATIONFLAGS) result = subprocess.run(cmd, capture_output=True, text=True, timeout=300, creationflags=SUBPROCESS_CREATIONFLAGS)
if result.returncode != 0: if result.returncode != 0:
logger.error(f"yt-dlp failed: {result.stderr}") logger.error(f"yt-dlp failed: {result.stderr}")