Switch the Soundcloud artist tracks to the full listing (#1913)
authorRob Sonke <r.sonke@maxxton.com>
Mon, 27 Jan 2025 23:11:36 +0000 (00:11 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Jan 2025 23:11:36 +0000 (00:11 +0100)
music_assistant/providers/soundcloud/__init__.py

index c0ea43552475baf1504094c4e2c4478657795ae9..0ec5c96f343f906cb0c83e55416516eccc305bc7 100644 (file)
@@ -275,8 +275,9 @@ class SoundcloudMusicProvider(MusicProvider):
         return result
 
     async def get_artist_toptracks(self, prov_artist_id: str) -> list[Track]:
-        """Get a list of 25 most popular tracks for the given artist."""
-        tracks_obj = await self._soundcloud.get_popular_tracks_user(prov_artist_id, 25)
+        """Get a list of (max 500) tracks for the given artist."""
+        tracks_obj = await self._soundcloud.get_tracks_from_user(prov_artist_id, 500)
+
         tracks = []
         for item in tracks_obj["collection"]:
             song = await self._soundcloud.get_track_details(item["id"])