Skip to content

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

@caseyjohnsonwv

Description

@caseyjohnsonwv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions