-
Notifications
You must be signed in to change notification settings - Fork 5
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
Song details becomes '?' when the song name is not English #9
Comments
Hello and sorry for the long delay. |
json = {
"name": encodeURIComponent(currentTrack.name),
"artist": encodeURIComponent(currentTrack.artist),
"album": encodeURIComponent(currentTrack.album),
"mediaKind": currentTrack.kind,
"duration": currentTrack.duration,
"elapsedTime": iTunesApp.PlayerPosition,
"remainingTime": remainingTime,
"genre": encodeURIComponent(currentTrack.genre),
"releaseYear": currentTrack.year,
"id": encodeURIComponent(currentTrack.name), // I haven't found a way to get the current track ID with iTunes COM :/
"playerState": playerState
}; decodeURIComponent(currentTrack.name)
decodeURIComponent(currentTrack.artist)
decodeURIComponent(currentTrack.album)
... |
Thanks for that fix! You can create a pull request if you want and I will implement it. |
Thank you so much! |
@itztaylorau can you confirm that the issue is resolved using iTunes-bridge 0.6.7? |
Hi, first of all, thank you for making this such a good package for us :)
Problem: Not able to show non-ASCII characters
Details: The song name in the attached image is originally call '早送りカレンダー ' in Japanese, but the console output ???????? and my application also show this.

⬆Console capture
⬆The song info box in iTunes
⬆Sample of using currentTrack.name inside an electron app.
How can I solve this problem or this is a bug?
Electron version: v8.3.0
Nodejs version: v12.18.3
npm version: 6.14.6
The text was updated successfully, but these errors were encountered: