mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #536] Is there any way we can find the id of a playlist without searching for it manually? #323
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#323
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 @ctran7 on GitHub (Jul 8, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/536
Seeing as there are a lot of functions requiring the id of a playlist, the only way I can see how is using the user_playlists function, loop through the results and match it by the desired name, and get the id there. I think there would be a benefit with adding this functionality with the get go, unless there is some easier way I could not find.
Additionally, I am creating the playlist and immediately adding tracks to it. It would be nice to have the playlist id as a returned value to the user_playlist_create function. Unless this is already a thing, and it's not in the documentation.
@a-camarillo commented on GitHub (Jul 8, 2020):
I haven't used the spotipy
user_playlist_createfunction but I would think it returns the playlist object from Spotify's playlist endpoint. Create a playlist documentation shows the playlist id is returned as part of the playlist object so it should be an easy value to get.Hope this helps
@ctran7 commented on GitHub (Jul 9, 2020):
Thanks so much!