Quality issue fix
This commit is contained in:
parent
fcbf07b141
commit
eb5b78389c
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user