From eb5b78389c5184ab410cddab3392e656d7b49bea Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Sat, 27 Dec 2025 01:25:20 -0600 Subject: [PATCH] Quality issue fix --- youtube_cli/main.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/youtube_cli/main.py b/youtube_cli/main.py index 15e54b3..6e4142f 100644 --- a/youtube_cli/main.py +++ b/youtube_cli/main.py @@ -40,7 +40,6 @@ class YouTubeCLI: ], "max_videos_per_page": 15, "yt_dlp_args": { - "format": "best", "write_thumbnail": True, "extractor_args": "youtube:player-client=default,-tv_simply", }, @@ -568,6 +567,14 @@ class YouTubeCLI: try: console.print("[blue]Starting download...[/blue]") + # Show what format will be used for download (if available) + if "format" in ytdlp_args: + console.print( + f"[cyan]Using custom format: {ytdlp_args['format']}[/cyan]" + ) + else: + console.print("[cyan]Using best available format[/cyan]") + # Run command and let yt-dlp handle progress natively result = subprocess.run( cmd, @@ -684,7 +691,7 @@ class YouTubeCLI: ] # Use best available format that includes both video and audio - # cmd.extend(["--format", "best[ext=mp4]"]) + # cmd.extend(["--format", "best"]) # Add extractor args from config if they exist ytdlp_args = config.get("yt_dlp_args", {}) @@ -700,6 +707,14 @@ class YouTubeCLI: try: console.print("[blue]Starting playlist download...[/blue]") + # Show what format will be used for download (if available) + if "format" in ytdlp_args: + console.print( + f"[cyan]Using custom format: {ytdlp_args['format']}[/cyan]" + ) + else: + console.print("[cyan]Using best available format[/cyan]") + # Run command and let yt-dlp handle progress natively result = subprocess.run( cmd,