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

Spotify playlist create uri cuttoff by one character #2

Merged
merged 1 commit into from
Jul 20, 2011
Merged

Spotify playlist create uri cuttoff by one character #2

merged 1 commit into from
Jul 20, 2011

Conversation

feelepxyz
Copy link
Contributor

For example if I do this:
POST /playlist/ '{"title" : "libspoty_test" }'
I get this:
{"creator":"philiph","subscriberCount":0,"tracks":[],"uri":"spotify:user:philiph:playlist:2g6DzoNOftu5Zlo6L2U5Q","title":"libspoty_test","collaborative":false}

However, the real uri is one character longer: spotify:user:philiph:playlist:2g6DzoNOftu5Zlo6L2U5QU

Returns the correct uri length after I added + 1 to the playlist_uri_len

liesen added a commit that referenced this pull request Jul 20, 2011
Fixed playlist uri cutoff by one character
@liesen liesen merged commit 2c64667 into liesen:master Jul 20, 2011
@liesen
Copy link
Owner

liesen commented Jul 20, 2011

Thanks!

And no need to null-terminate the string because sp_link_as_string guarantees it will do that.

tom-martin pushed a commit to tom-martin/spotify-api-server that referenced this pull request Dec 21, 2011
Fixed playlist uri cutoff by one character
@0m15
Copy link

0m15 commented Aug 1, 2013

when creating a playlist, I got return URIs dropped by 5 (five) chars:

Correct one: 6oV6mXhVQNRHSD4hPlv415
Returned one: 6oV6mXhVQNRHSD4hP

@liesen
Copy link
Owner

liesen commented Aug 4, 2013

@Zimok that was addressed recently in #24

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.

None yet

3 participants