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

Truncated track titles and only one artist name returned in json #910

Open
aspain opened this issue Jan 31, 2025 · 0 comments
Open

Truncated track titles and only one artist name returned in json #910

aspain opened this issue Jan 31, 2025 · 0 comments

Comments

@aspain
Copy link

aspain commented Jan 31, 2025

I built a raspberry pi project which displays my now-playing details on an LCD screen however I noticed this API seems to truncate longer track title names, and if there are multiple artists for a track, only the first artist gets returned. I wasn't able to find where or how in the API code this is happening - is this something I can customize on my end if I'd like to? I admittedly have little/no API experience so may have just not been looking in the right places

Track Titles truncated
Example of track title being cut off:
The full track title should be: "Blow Away - Live at John F. Kennedy Stadium, Philadelphia, PA 7/7/89; 2018 Remaster"
As seen in spotify:

Image

However the track title found in the API call is "Blow Away - Live at John F. Kennedy Stadium, Philadelphia, PA 7":

{
  "volume": 9,
  "mute": false,
  "equalizer": {
    "bass": 3,
    "treble": 3,
    "loudness": true,
    "speechEnhancement": true,
    "nightMode": false
  },
  "currentTrack": {
    "artist": "Grateful Dead",
    "title": "Blow Away - Live at John F. Kennedy Stadium, Philadelphia, PA 7",
    "album": "The Best Of The Grateful Dead Live (2018 Remaster)",

So, this track title is missing "/7/89; 2018 Remaster" from the ending

As a result, this is what it looks like when displayed on my screen with the shortened track title:

Image

Only a single artist is returned
If a track has multiple artists, only the first artist name listed is returned in the json:
In this example, two artists should be returned "Charlie Parr, Nicholas David" as seen in Spotify:

Image

However only the first artist is ever returned in the json, in this case "Charlie Parr":
Json returned for this track:

{
  "volume": 9,
  "mute": false,
  "equalizer": {
    "bass": 3,
    "treble": 3,
    "loudness": true,
    "speechEnhancement": true,
    "nightMode": false
  },
  "currentTrack": {
    "artist": "Charlie Parr",
    "title": "Rocky Racoon",
    "album": "Rocky Raccoon",

As a result, this is what it looks like displayed on my screen with only 1 artist:

Image

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

No branches or pull requests

1 participant