Fix payload variable name in add_song_to_playlist method#57
Fix payload variable name in add_song_to_playlist method#57Aran404 merged 1 commit intoAran404:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes a bug in the like_song method by correcting the payload variable key name in the API request. The change updates the variables key from "uris" to "libraryItemUris" to match the expected format of Spotify's addToLibrary API endpoint, resolving a SongError: Could not like song exception.
Key Changes:
- Updated the payload variables key in the
like_songmethod's API request from"uris"to"libraryItemUris"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Hey, thank you very much for the contribution. Has this been tested? If so, I'll merge it into the main branch. Happy holidays! |
|
Yes, I tested that. By the way, thank you for this project! |
Updated payload variable to fix spotapi.exceptions.errors.SongError: Could not like song.