plietar / librespot

Open Source Spotify client library
MIT License
1.14k stars 184 forks source link

Problems with username and special characters #210

Open AmelioIO opened 7 years ago

AmelioIO commented 7 years ago

Hi,

I have the librespot service up and running and can use it with most usernames, but it won't work with mine. My spotify username contains a "|" and a "!".

I tried escaping it after --username but that doesn't work.

Does anybody now how to fix this?

Thanks

awiouy commented 7 years ago

In Linux use single quotes: --username 'Weird|Name!'

AmelioIO commented 7 years ago

Thanks for your response. But unfortunatly it won't work with single quotes.

Librespot creates a credentials.json file with my username, but everything after that fails.

Also, when using librespot in discovery mode it will fail cause than there is no place to escape those characters at all.

I'd be glad to give some more information if needed.

Thanks

michaelherger commented 7 years ago

Just got a report of a user failing with the dollar sign ($) in the password, another one with spaces.

Can we up the importance of this issue?

plietar commented 7 years ago

Spotify won't let me do any of $ | ! or spaces in a username when making an account.

Do you have more details than "failing" ? Is there an error message ?

plietar commented 7 years ago

23 was supposed to handle cases with usernames with uppercase characters, which should have fixed special characters as well.

michaelherger commented 7 years ago

@plietar - please see issue #225 (which might be a dupe).