Always choose mp3 streaming format for the Soundcloud provider (#2169)
authorRob Sonke <rob@tigrou.nl>
Sun, 4 May 2025 18:28:02 +0000 (20:28 +0200)
committerGitHub <noreply@github.com>
Sun, 4 May 2025 18:28:02 +0000 (20:28 +0200)
music_assistant/providers/soundcloud/__init__.py
music_assistant/providers/soundcloud/manifest.json
requirements_all.txt

index c3dfaedcf29a821b8341583e4bfd2fc540316b53..43a4e0aed9a4149e6ce3dd02eb9134eb95146b40 100644 (file)
@@ -310,7 +310,7 @@ class SoundcloudMusicProvider(MusicProvider):
 
     async def get_stream_details(self, item_id: str, media_type: MediaType) -> StreamDetails:
         """Return the content details for the given track when it will be streamed."""
-        url: str = await self._soundcloud.get_stream_url(track_id=item_id)
+        url: str = await self._soundcloud.get_stream_url(track_id=item_id, presets=["mp3"])
         return StreamDetails(
             provider=self.lookup_key,
             item_id=item_id,
index 5b26cb1bd107a7773bc74d43a312c915f2829ed1..ffcf98644c93a794ce4e6c7ff0083f70efbe9287 100644 (file)
@@ -4,7 +4,7 @@
   "name": "Soundcloud",
   "description": "Support for the Soundcloud streaming provider in Music Assistant.",
   "codeowners": ["@domanchi", "@gieljnssns"],
-  "requirements": ["soundcloudpy==0.1.2"],
+  "requirements": ["soundcloudpy==0.1.3"],
   "documentation": "https://music-assistant.io/music-providers/soundcloud/",
   "multi_instance": true
 }
index 9a5da6ad1dc7232554c1a762b38e624fa6a5e848..2f654a3312bee7aa2145e8ff88aad1fdb295c29a 100644 (file)
@@ -49,7 +49,7 @@ setuptools>=1.0.0
 shortuuid==1.0.13
 snapcast==2.3.6
 soco==0.30.9
-soundcloudpy==0.1.2
+soundcloudpy==0.1.3
 sxm==0.2.8
 unidecode==1.4.0
 websocket-client==1.8.0