Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@zackradisic zackradisic released this 30 Mar 23:37
· 1 commit to master since this release

Pagination Support for Likes

Pagination for likes was previously achieved with the limit and offset parameters, but it seems to be no longer working with SoundCloud's API. I've revamped the GetLikesOptions object used by scdl.getLikes() to accommodate these new changes.

Additionally, I've also automated the entire pagination process so that it can be executed with a single invocation of scdl.getLikes(). (In the past you had to change limit and offset and call it multiple times)

const likes = await scdl.getLikes({
  profileUrl: 'https://soundcloud.com/uiceheidd',
  limit: 200 // Will retrieve at most 200 liked tracks
})

const allLikes = await scdl.getLikes({
  profileUrl: 'https://soundcloud.com/uiceheidd',
  limit: -1 // Will retrieve all liked tracks
})