Skip to content

Commit

Permalink
ytm: Force web_music client for downloading
Browse files Browse the repository at this point in the history
ios and mweb clients have been returning HTTP status code 400.
  • Loading branch information
lubo committed Feb 8, 2025
1 parent 84575ab commit 6b9bb4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ytm/ytm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 6b9bb4b

Please sign in to comment.