[GH-ISSUE #1079] Dots in artists names #639

Closed
opened 2026-02-28 00:00:27 +03:00 by kerem · 6 comments
Owner

Originally created by @xcrittpm on GitHub (Mar 22, 2024).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1079

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

Originally created by @xcrittpm on GitHub (Mar 22, 2024). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/1079 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
kerem 2026-02-28 00:00:27 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@xcrittpm commented on GitHub (Mar 28, 2024):

Anyone know any solution?
Thanks

<!-- gh-comment-id:2025898901 --> @xcrittpm commented on GitHub (Mar 28, 2024): Anyone know any solution? Thanks
Author
Owner

@dieser-niko commented on GitHub (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.

<!-- gh-comment-id:2027394506 --> @dieser-niko commented on GitHub (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.
Author
Owner

@Voltaic314 commented on GitHub (Mar 31, 2024):

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.

<!-- gh-comment-id:2028842259 --> @Voltaic314 commented on GitHub (Mar 31, 2024): 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.
Author
Owner

@itsbekas commented on GitHub (Apr 12, 2024):

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
<!-- gh-comment-id:2051363346 --> @itsbekas commented on GitHub (Apr 12, 2024): > 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: ```python 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 ```
Author
Owner

@dieser-niko commented on GitHub (May 23, 2024):

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

<!-- gh-comment-id:2126674681 --> @dieser-niko commented on GitHub (May 23, 2024): @borja190898 any updates so far? Could you post a code snippet?
Author
Owner

@stephanebruckert commented on GitHub (Jul 9, 2024):

Closing as this seems to work and no snippet was provided

<!-- gh-comment-id:2218359126 --> @stephanebruckert commented on GitHub (Jul 9, 2024): Closing as this seems to work and no snippet was provided
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#639
No description provided.