From 0c9a833c14248277f88f41b8cff29ca54b41a88a Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Mon, 23 Mar 2026 22:39:48 +0100 Subject: [PATCH] fix: use iOS player client to bypass YouTube bot detection YouTube restricts available formats for bot-like requests. Specifying player_client=ios,web makes yt-dlp impersonate the iOS app which has broader format access without requiring cookies. --- app/downloader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/downloader.py b/app/downloader.py index 7892bfa..8b665ff 100644 --- a/app/downloader.py +++ b/app/downloader.py @@ -49,6 +49,7 @@ async def extract_audio(url: str) -> Path: "--audio-format", "mp3", "--audio-quality", "128K", "--format", "bestaudio/best/b", + "--extractor-args", "youtube:player_client=ios,web", "--output", outtmpl, ]