From 26a36667b8489d09df2829471dbb59278a2a74f2 Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Mon, 29 Dec 2025 20:57:34 -0600 Subject: [PATCH] 2x timeout for dls --- youtube_cli/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/youtube_cli/main.py b/youtube_cli/main.py index eb8b6dc..4281b84 100644 --- a/youtube_cli/main.py +++ b/youtube_cli/main.py @@ -576,13 +576,15 @@ class YouTubeCLI: else: console.print("[cyan]Using 1080p quality by default[/cyan]") + console.print("[blue]Starting download...[/blue]") + # Run command and let yt-dlp handle progress natively result = subprocess.run( cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, - timeout=300, # 5 minute timeout + timeout=600, # 10 minute timeout ) if result.returncode == 0: @@ -716,13 +718,15 @@ class YouTubeCLI: else: console.print("[cyan]Using 1080p quality by default[/cyan]") + console.print("[blue]Starting playlist download...[/blue]") + # Run command and let yt-dlp handle progress natively result = subprocess.run( cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, - timeout=600, # 10 minute timeout for playlist downloads + timeout=1200, # 20 minute timeout for playlist downloads ) if result.returncode == 0: