Skip to content

Commit

Permalink
Rewrite YT stream resolver to use web formats. (#1808)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinSchenkel authored Dec 19, 2024
1 parent c33e766 commit 73545ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion music_assistant/providers/ytmusic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,11 @@ def _extract_best_stream_url_format() -> dict[str, Any]:
"cookiefile": StringIO(self._netscape_cookie),
# This enforces a player client and skips unnecessary scraping to increase speed
"extractor_args": {
"youtube": {"skip": ["translated_subs", "dash"], "player_client": ["ios"]}
"youtube": {
"skip": ["translated_subs", "dash"],
"player_client": ["web_music"],
"player_skip": ["webpage"],
}
},
}
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
Expand Down
2 changes: 1 addition & 1 deletion music_assistant/providers/ytmusic/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "YouTube Music",
"description": "Support for the YouTube Music streaming provider in Music Assistant.",
"codeowners": ["@MarvinSchenkel"],
"requirements": ["ytmusicapi==1.8.2", "yt-dlp==2024.10.7"],
"requirements": ["ytmusicapi==1.8.2", "yt-dlp==2024.12.13"],
"documentation": "https://music-assistant.io/music-providers/youtube-music/",
"multi_instance": true
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ sxm==0.2.8
tidalapi==0.8.1
unidecode==1.3.8
xmltodict==0.14.2
yt-dlp==2024.10.7
yt-dlp==2024.12.13
ytmusicapi==1.8.2
zeroconf==0.136.2

0 comments on commit 73545ee

Please sign in to comment.