Skip to content

Commit

Permalink
fix typos in deezer playlist creation & tracks population urls (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
prettyirrelevant authored May 29, 2023
1 parent 23d84a1 commit 3a978c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kilishi/streaming_platforms/deezer/deezer.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (d *Deezer) GetPlaylist(playlistURL string) (utils.Playlist, error) {
func (d *Deezer) CreatePlaylist(playlist utils.Playlist, accessToken string) (string, error) {
var response deezerAPICreatePlaylistResponse
err := d.RequestClient.
Post(d.Config.BaseAPIURL + "/users/me/playlist").
Post(d.Config.BaseAPIURL + "user/me/playlists").
SetContentType(utils.ApplicationJSON).
SetBearerAuthToken(accessToken).
SetQueryParams(map[string]string{
Expand Down Expand Up @@ -124,7 +124,7 @@ func (d *Deezer) populatePlaylistWithTracks(tracks []utils.Track, playlistID, ac

var response any
err := d.RequestClient.
Post(d.Config.BaseAPIURL + "/playlists/" + playlistID + "/tracks").
Post(d.Config.BaseAPIURL + "/playlist/" + playlistID + "/tracks").
SetBearerAuthToken(accessToken).
SetContentType(utils.ApplicationJSON).
SetFormData(map[string]string{
Expand Down

0 comments on commit 3a978c5

Please sign in to comment.