From 6b9bb4b014a879a74285299caa739e3f96cc5e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=BDubom=C3=ADr=20Ku=C4=8Dera?= Date: Sat, 8 Feb 2025 12:30:30 +0100 Subject: [PATCH] ytm: Force web_music client for downloading ios and mweb clients have been returning HTTP status code 400. --- ytm/ytm/__main__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ytm/ytm/__main__.py b/ytm/ytm/__main__.py index b939e9e..28c9997 100644 --- a/ytm/ytm/__main__.py +++ b/ytm/ytm/__main__.py @@ -54,6 +54,11 @@ def download_library(client): dest_dir = Path.home() / "Music" downloader = YoutubeDL( { + "extractor_args": { + "youtube": { + "player_client": ["web_music"], + }, + }, "format": "141", "http_headers": { "Authorization": client.headers["authorization"],