mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #154] get Track IDs of a public palylist #72
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#72
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 @1337sup3rh4x0r on GitHub (Jan 15, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/154
Hi there,
I managed to list the track IDs of my one playlists with this script:
however this does not work for public playlists I follow, e.g. this one:
spotify:user:spotifycharts:playlist:37i9dQZEVXbJiZcmkrIHGUIn that case the script returns:
Obviously the followed playlist does not conatin the same fields?
I also tried to set the username variable in my script posted above to "spotifycharts" which is the owner of the playlist, but then nothing is returned.
How can I get a list of those tracks?
@cmcnutt1 commented on GitHub (Jan 16, 2017):
This is an issue I fixed myself a while back, due to needing to access my Discovery playlist (which for some reason, is public). I've created a pull request to implement public playlists. More information on the usage is documented there.
#156 - Add support for public playlists
@plamere commented on GitHub (Jan 18, 2017):
You are using the wrong userid when reading the playlist. You need to extract the user id from the playlist uri. See this example:
https://github.com/plamere/spotipy/blob/master/examples/read_a_playlist.py
@1337sup3rh4x0r commented on GitHub (Jan 21, 2017):
Thank you, this is working!
You're right, I was initially passing my username from the token to the playlist function ...