proper limiting of videos to 1080p
This commit is contained in:
parent
eb5b78389c
commit
d80098709b
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user