Announcements

Help Wizard

Step 1

NEXT STEP

GET /me/player/currently-playing Returning incorrect track_number for local files

GET /me/player/currently-playing Returning incorrect track_number for local files

Im querying my currently playing song and if it is a local file, the track_number being returned is always 0. Is this a bug??

 

 

Response:

 

 

 

 

{
  "timestamp": 1727773331051,
  "context": null,
  "progress_ms": 26363,
  "item": {
    "album": {
      "album_type": null,
      "artists": [],
      "available_markets": [],
      "external_urls": {},
      "href": null,
      "id": null,
      "images": [],
      "name": "808's & Heartbreak",
      "release_date": null,
      "release_date_precision": null,
      "type": "album",
      "uri": null
    },
    "artists": [
      {
        "external_urls": {},
        "href": null,
        "id": null,
        "name": "Kanye West",
        "type": "artist",
        "uri": null
      }
    ],
    "available_markets": [],
    "disc_number": 0,
    "duration_ms": 238000,
    "explicit": false,
    "external_ids": {},
    "external_urls": {},
    "href": null,
    "id": null,
    "is_local": true,
    "name": "Amazing (ft Young Jeezy)",
    "popularity": 0,
    "preview_url": null,
    "track_number": 0,
    "type": "track",
    "uri": "spotify:local:Kanye+West:808%27s+%26+Heartbreak:Amazing+%28ft+Young+Jeezy%29:238"
  },
  "currently_playing_type": "track",
  "actions": {
    "disallows": {
      "resuming": true
    }
  },
  "is_playing": true
}

 

 

 

 

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random