mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #365] Inconsistent return object of user_playlist_tracks #216
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#216
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 @fulaphex on GitHub (Mar 30, 2019).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/365
If given a playlist_id
user_playlist_tracksreturns a paging object,if given a full url it returns playlist object (full). Tested on this playlist.
Code snipper below demonstrates the difference:
Having it written in the documentation would be nice, with the explanation what input results in what output type.
@ritiek commented on GitHub (Jan 4, 2020):
I had a similar problem in the past. I don't remember if this commit was enough for the fix but do check out if this helps https://github.com/plamere/spotipy/pull/324/commits/baf96493cc9b6aa51073c59a9f74edf6df444549.
@ritiek commented on GitHub (Jan 13, 2020):
This is the correct behaviour.
This should return the same paging object as passing the playlist_id. But with the full HTTP URL,
sp.user_playlist_tracksends up mimickingsp.playlistwhich is an incorrect behaviour.