[GH-ISSUE #157] sp.user_playlists() does not return collaborative playlist that user is following #75

Closed
opened 2026-02-27 23:20:42 +03:00 by kerem · 4 comments
Owner

Originally created by @DanG100 on GitHub (Jan 17, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/157

The user_playlists() does not return collaborative playlists that the current user is following. On the Spotify API console those playlists are returned.

Originally created by @DanG100 on GitHub (Jan 17, 2017). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/157 The user_playlists() does not return collaborative playlists that the current user is following. On the Spotify API console those playlists are returned.
kerem closed this issue 2026-02-27 23:20:42 +03:00
Author
Owner

@cmcnutt1 commented on GitHub (Jan 17, 2017):

The user_playlists function only pulls the playlists that the user is the owner of. If you're the owner of the collaborative playlist, it will get returned. However, to my knowledge, there is nothing in the spotipy code that allows you to pull down the playlists that a user is following. I'll mess around with the code a bit and see if there's any way to access the user's followed playlists.

<!-- gh-comment-id:273285788 --> @cmcnutt1 commented on GitHub (Jan 17, 2017): The user_playlists function only pulls the playlists that the user is the owner of. If you're the owner of the collaborative playlist, it will get returned. However, to my knowledge, there is nothing in the spotipy code that allows you to pull down the playlists that a user is following. I'll mess around with the code a bit and see if there's any way to access the user's followed playlists.
Author
Owner

@DanG100 commented on GitHub (Jan 18, 2017):

The problem is that the spotify web api console returns a different number of playlists then user_playlists(). Normal playlists that I follow show up in both.However, only collaborative playlists that I follow aren't in the playlists dict user_playlists()

<!-- gh-comment-id:273367916 --> @DanG100 commented on GitHub (Jan 18, 2017): The problem is that the [spotify web api console](https://developer.spotify.com/web-api/console/get-current-user-playlists/) returns a different number of playlists then user_playlists(). Normal playlists that I follow show up in both.However, only collaborative playlists that I follow aren't in the playlists dict user_playlists()
Author
Owner

@cmcnutt1 commented on GitHub (Jan 18, 2017):

Changing the scope to 'playlist-read-collaborative' is what did the trick for me. Had mine set on playlist-modify-private, and would not show any collaborative until I changed it. You will have to reauthorize when your program does token authentication, but should work after you make the changes and reauthorize

<!-- gh-comment-id:273402836 --> @cmcnutt1 commented on GitHub (Jan 18, 2017): Changing the scope to 'playlist-read-collaborative' is what did the trick for me. Had mine set on playlist-modify-private, and would not show any collaborative until I changed it. You will have to reauthorize when your program does token authentication, but should work after you make the changes and reauthorize
Author
Owner

@DanG100 commented on GitHub (Jan 18, 2017):

Oh, that fixed it. Awesome.

<!-- gh-comment-id:273623362 --> @DanG100 commented on GitHub (Jan 18, 2017): Oh, that fixed it. Awesome.
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#75
No description provided.