From d80098709bf94eb4f035a2b00b2ac724780421be Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Mon, 29 Dec 2025 18:45:57 -0600 Subject: [PATCH] proper limiting of videos to 1080p --- youtube_cli/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youtube_cli/main.py b/youtube_cli/main.py index 6e4142f..eb8b6dc 100644 --- a/youtube_cli/main.py +++ b/youtube_cli/main.py @@ -40,6 +40,7 @@ class YouTubeCLI: ], "max_videos_per_page": 15, "yt_dlp_args": { + "format": "bestvideo[height=1080]+bestaudio/bestvideo[height<=1080]+bestaudio", "write_thumbnail": True, "extractor_args": "youtube:player-client=default,-tv_simply", }, @@ -573,7 +574,7 @@ class YouTubeCLI: f"[cyan]Using custom format: {ytdlp_args['format']}[/cyan]" ) else: - console.print("[cyan]Using best available format[/cyan]") + console.print("[cyan]Using 1080p quality by default[/cyan]") # Run command and let yt-dlp handle progress natively result = subprocess.run( @@ -713,7 +714,7 @@ class YouTubeCLI: f"[cyan]Using custom format: {ytdlp_args['format']}[/cyan]" ) else: - console.print("[cyan]Using best available format[/cyan]") + console.print("[cyan]Using 1080p quality by default[/cyan]") # Run command and let yt-dlp handle progress natively result = subprocess.run(