mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #585] Playlist items always showing 7 items #351
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iAmCLY on GitHub (Oct 10, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/585
Describe the bug
Everytime I tried to pull tracks from playlist its always give me up to 7 instead of the limit (100). I did check all playlist and give me 7 too. Any idea what I missed? I check the limit and it is 100.
Your code
Expected behavior
Give me more than 7
@Quizz1Cal commented on GitHub (Oct 10, 2020):
This is definitely strange! Can you confirm that you are checking different playlists i.e. that
playlistIDis not always set to the same playlist, or perhaps check this withprint([item['track']['name'] for item in result])? Some replicable code would be appreciated as well - currently, I'm fetching up to the specified limit.@iAmCLY commented on GitHub (Oct 10, 2020):
I did check it and I try all of the available playlist and give me same results which 7 tracks only per playlist.
@Quizz1Cal commented on GitHub (Oct 10, 2020):
I'm not entirely sure then, though I'll keep investigating for you - in the meantime, I have some tests I'd like you to try:
limit=100e.g.spotify.playlist_items(playlistID, additional_types=['track'], limit=100)nextcomponent(s) returned as well.As an example of 1) and 2):
This code is necessary for long playlists above the set limit as multiple requests are necessary.
Let us know if doing either 1) or 2) yields any difference!
@stephanebruckert commented on GitHub (Oct 10, 2020):
resultdoes not directly contain the items, trylen(result['items'])instead@iAmCLY commented on GitHub (Oct 10, 2020):
@stephanebruckert yes that solved the issue. Sorry my bad and thanks @Quizz1Cal too!