mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #178] Incorrectly Causes Returns when Artist or Title has Japanese Characters #91
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Chris-Perkins on GitHub (Apr 1, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/178
A bit of a weird one. I have Dream Sweet in Sea Major in my playlist by "ミラクルミュージカル". I was having problems with my program due to what I thought was my own programming logic.
I then put in the example function on Spotipy's own website for getting all tracks off a playlist. Here are the raw results:
CODE:
OUTPUT:
After attempting to add the artist with Japanese characters, my function returns despite the above code being in an infinite loop with no way to escape but user input.
I should also note that there are 20 songs in this playlist.
I'm also guessing this doesn't necessarily have to do with Japanese characters, but non-latin or ascii characters in general.
@622michael commented on GitHub (Apr 6, 2017):
I fixed this issue by adding ensure_ascii=false to the json.dumps in the client.py file.
@stephanebruckert commented on GitHub (Jan 17, 2020):
I can't find the exact same playlist you are talking about and can't reproduce it with japanese artists, track names or playlist names. Please let me know if you still have this issue and feel free to re-open with a complete and minimal code sample.