Skip to content

Commit

Permalink
[soundcloud] bug fix: add limit parameter to get_recommended function (
Browse files Browse the repository at this point in the history
…#920)

* [soundcloud] bug fix: add limit parameter to get_recommended function

* lint

---------

Co-authored-by: Marcel van der Veldt <[email protected]>
  • Loading branch information
domanchi and marcelveldt authored Nov 12, 2023
1 parent 0d0329f commit 7b08dcf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async def get_playlists_from_user(self, user_id, limit=10):

# ---------------- MISCELLANEOUS ----------------

async def get_recommended(self, track_id):
async def get_recommended(self, track_id: str, limit: int = 10): # noqa: ARG002
""":param track_id: track id to get recommended tracks from this"""
return await self.get(
f"{BASE_URL}/tracks/{track_id}/related?client_id={self.client_id}",
Expand Down

0 comments on commit 7b08dcf

Please sign in to comment.