Rewrite YT stream resolver to use web formats. (#1808)
authorMarvin Schenkel <marvinschenkel@gmail.com>
Thu, 19 Dec 2024 07:20:36 +0000 (08:20 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Dec 2024 07:20:36 +0000 (08:20 +0100)
music_assistant/providers/ytmusic/__init__.py
music_assistant/providers/ytmusic/manifest.json
requirements_all.txt

index c8835156ba875c54101d0c10743d1dba080d4062..2ce8097960c6d28d1a515c4540063c07b7a00f22 100644 (file)
@@ -748,7 +748,11 @@ class YoutubeMusicProvider(MusicProvider):
                 "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:
index 165bd56739017189f99d8271c49cf83cbabbd7fa..d1e523188159ba38745ceae185866059ff75e7c7 100644 (file)
@@ -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
 }
index f5f2c154bc02c55e821e14cb71ccd9d25e64e90d..e0737dffb8924c846a56dad5c5a03d052fa79ce5 100644 (file)
@@ -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