mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #1072] user_playlist_create creates a public playlist despite setting the public parameter to False #632
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#632
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 @ShevinuM on GitHub (Feb 15, 2024).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1072
I am trying to get my code to create a private playlist but despite setting
public=False, the playlist being created is public.playlist = object.user_playlist_create(user_id, playlist_name, public=False, collaborative=False, description=f"My liked songs for {playlist_name}")Expected behavior
A clear and concise description of what you expected to happen.
Output
Paste and format errors (with complete stacktrace) or logs. Make sure to remove sensitive information.
Environment:
@dieser-niko commented on GitHub (Feb 16, 2024):
Tbh I have had problems myself when trying to create/modify a playlist in terms of visibility. I hope you mean the same thing as me when you say "private playlist".
The problem here is that it's not possible because the Spotify API doesn't have that kind of attribute to set a playlist to private. You can only unlist it with
public=Falseand that's it.This is not a bug introduced by spotipy.
@ShevinuM commented on GitHub (Feb 17, 2024):
Isn't public=False supposed to set a playlist to private?
@dieser-niko commented on GitHub (Feb 17, 2024):
As far as I know this will only affect the playlists visibility on your profile