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

Dots in artists names #1079

Open
borja190898 opened this issue Mar 22, 2024 · 5 comments
Open

Dots in artists names #1079

borja190898 opened this issue Mar 22, 2024 · 5 comments
Labels

Comments

@borja190898
Copy link

Hello, when I try to search for an artist by name and the name has dots or strange characters (for example C.R.O), it does not find it and detects it as if it were a different one.
How could this be avoided?
Thank you

@borja190898
Copy link
Author

Anyone know any solution?
Thanks

@dieser-niko
Copy link
Member

dieser-niko commented Mar 29, 2024

I'm not at home currently but one thing to try out would be to use alphanumeric characters only. So instead of C.R.O. just CRO

And also I just tested what would happen when I search the artist and found out that he actually calls himself CRO on spotify. It's just CRO either way. But still, it seems that the application doesn't seem to have that problem.

I'll look into this as soon as possible.

Edit: I just assumed you meant the german artist, who is also called CRO, whoops.

@Voltaic314
Copy link

I don't think this really needs fixing necessarily because some artists do actually have certain characters in their spotify names. Like "S. Carey" for example. But you could try to do a recursive search where it searches what the user wants and then if no results show then try without the characters for example maybe.

@itsbekas
Copy link

Hello, when I try to search for an artist by name and the name has dots or strange characters (for example C.R.O), it does not find it and detects it as if it were a different one. How could this be avoided? Thank you

Hey, can you show us how you tried to search for this artist? I just tested the following snippet with the artist you used as an example:

s = Spotify(client_credentials_manager=SpotifyClientCredentials())
cro = s.search('C.R.O', type='artist')
data = cro['artists']['items'][0]['name']
print(data)

and the output was, as expected:

C.R.O

@dieser-niko
Copy link
Member

@borja190898 any updates so far? Could you post a code snippet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants