[GH-ISSUE #1072] user_playlist_create creates a public playlist despite setting the public parameter to False #632

Closed
opened 2026-02-28 00:00:24 +03:00 by kerem · 3 comments
Owner

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:

  • OS: Mac
  • Python version: 3.11.3
  • spotipy version: 2.23.0
  • IDE: Visual Studio Code
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:** - OS: Mac - Python version: 3.11.3 - spotipy version: 2.23.0 - IDE: Visual Studio Code
kerem 2026-02-28 00:00:24 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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=False and that's it.

This is not a bug introduced by spotipy.

<!-- gh-comment-id:1949356161 --> @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=False` and that's it. This is not a bug introduced by spotipy.
Author
Owner

@ShevinuM commented on GitHub (Feb 17, 2024):

Isn't public=False supposed to set a playlist to private?

<!-- gh-comment-id:1949943597 --> @ShevinuM commented on GitHub (Feb 17, 2024): Isn't public=False supposed to set a playlist to private?
Author
Owner

@dieser-niko commented on GitHub (Feb 17, 2024):

As far as I know this will only affect the playlists visibility on your profile

<!-- gh-comment-id:1950015126 --> @dieser-niko commented on GitHub (Feb 17, 2024): As far as I know this will only affect the playlists visibility on your profile
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#632
No description provided.