From a2a84d2c04aff60215b8fe2bba68a7cdf8426850 Mon Sep 17 00:00:00 2001 From: inputnoise Date: Mon, 25 May 2026 21:04:24 +0200 Subject: [PATCH] Use iOS player client to bypass YouTube bot detection (fixes 'only images available') --- backend/services/ytdlp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/services/ytdlp.py b/backend/services/ytdlp.py index a51906f..7f48a6d 100644 --- a/backend/services/ytdlp.py +++ b/backend/services/ytdlp.py @@ -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,