Skip to content

Commit

Permalink
Switch the Soundcloud artist tracks to the full listing (#1913)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsonke-maxxton authored Jan 27, 2025
1 parent 1111a43 commit e8721f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions music_assistant/providers/soundcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,9 @@ async def get_playlist_tracks(self, prov_playlist_id: str, page: int = 0) -> lis
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"])
Expand Down

0 comments on commit e8721f9

Please sign in to comment.