Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AlbumManager.getTracks(id) is limited to 20 results #292

Open
1 task done
caseyjohnsonwv opened this issue Jul 8, 2024 · 0 comments
Open
1 task done

AlbumManager.getTracks(id) is limited to 20 results #292

caseyjohnsonwv opened this issue Jul 8, 2024 · 0 comments

Comments

@caseyjohnsonwv
Copy link

Bug Report

What i expected:

This album, American Heartbreak by Zach Bryan, has 34 tracks.

const res = await CLIENT.albums.getTracks('7IouDrXPdAZwT1NzVV3vef');
console.log(res.length);

>> 34

What actually happened:

>> 20

The function is only returning the first 20, which is the Spotify web API's default limit. The getTracks method doesn't have options to increase the limit.

To reproduce this bug:

  • Node Version: v20.12.2

  • Library Version: v9.2.5

  • I have already checked issues regarding this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant