Use iOS player client to bypass YouTube bot detection (fixes 'only images available')

This commit is contained in:
inputnoise
2026-05-25 21:04:24 +02:00
parent 5f5ca52b95
commit a2a84d2c04

View File

@@ -218,6 +218,7 @@ def fetch_video_metadata(video_id: str) -> dict | None:
"--no-download",
"--no-playlist",
"--quiet",
"--extractor-args", "youtube:player_client=ios,web",
*_cookie_args(),
], timeout=30)
@@ -473,6 +474,7 @@ def start_download(
"--no-part", "--no-mtime",
"-o", output_template,
"--newline", "--progress", "--no-colors",
"--extractor-args", "youtube:player_client=ios,web",
*_cookie_args(),
],
stdout=subprocess.PIPE,