spotify-api / spotify-api.js

A complete wrapper for spotify web api for deno, node.js and the browser.
https://spotify-api.js.org
MIT License
211 stars 19 forks source link

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

Open caseyjohnsonwv opened 2 months ago

caseyjohnsonwv commented 2 months ago

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: