Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the playlist path that could cause errors #261

Merged

Conversation

carlosefonseca
Copy link
Contributor

@carlosefonseca carlosefonseca commented May 3, 2024

According to #167, the playlist endpoints with username were deprecated sometime ago. Although some might still work, at least the remove tracks endpoint does not work. Spotify returns 403 Forbidden when trying to do so.

This PR adjusts the playlist @path to not have the username on regular playlists. I tested and I got tracks removed from playlists again, using the remove by positions (some ways of removing tracks seem to not work as reliably but that might be Spotify's fault).

I didn't find much information about the starred playlist so I kept it as it was.

I'm not sure if this is the best approach but I'm open to suggestions.

@guilhermesad
Copy link
Owner

Looks good, thanks!

@guilhermesad guilhermesad merged commit 1ad7964 into guilhermesad:master May 3, 2024
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants