2x timeout for dls
This commit is contained in:
parent
d80098709b
commit
26a36667b8
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user