Track marked as playable when it has no markets

Reply

Track marked as playable when it has no markets

samchungy
Regular

Hi I think I found a pretty big bug. I was trying to remove an unplayable track as marked in my Spotify player using the API but it was marked as playable. This is currently breaking my app when I try to play a track from a playlist with an index context.

When you get this track it has no markets attached to it.

 "available_markets": [],
curl -X "GET" "https://api.spotify.com/v1/tracks/2eA4ws3EjBcetLJyG8kCNV" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer Redacted"

 When you CURL it with a market it will appear as "playable"

curl -X "GET" "https://api.spotify.com/v1/tracks/2eA4ws3EjBcetLJyG8kCNV?market=AU" -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer Redacted"

 

{
  "album": {
    "album_type": "album",
    "artists": [
      {
        "external_urls": {
          "spotify": "https://open.spotify.com/artist/75EZuo5MHV2572NRpMWotC"
        },
        "href": "https://api.spotify.com/v1/artists/75EZuo5MHV2572NRpMWotC",
        "id": "75EZuo5MHV2572NRpMWotC",
        "name": "Crystal Fighters",
        "type": "artist",
        "uri": "spotify:artist:75EZuo5MHV2572NRpMWotC"
      }
    ],
    "external_urls": {
      "spotify": "https://open.spotify.com/album/0zvMN8ZsdLYPS1NPxJ3J6e"
    },
    "href": "https://api.spotify.com/v1/albums/0zvMN8ZsdLYPS1NPxJ3J6e",
    "id": "0zvMN8ZsdLYPS1NPxJ3J6e",
    "images": [
      {
        "height": 640,
        "url": "https://i.scdn.co/image/ab67616d0000b273aa2b2ab47537be22eb8c26d7",
        "width": 640
      },
      {
        "height": 300,
        "url": "https://i.scdn.co/image/ab67616d00001e02aa2b2ab47537be22eb8c26d7",
        "width": 300
      },
      {
        "height": 64,
        "url": "https://i.scdn.co/image/ab67616d00004851aa2b2ab47537be22eb8c26d7",
        "width": 64
      }
    ],
    "name": "Cave Rave",
    "release_date": "2013-05-24",
    "release_date_precision": "day",
    "total_tracks": 10,
    "type": "album",
    "uri": "spotify:album:0zvMN8ZsdLYPS1NPxJ3J6e"
  },
  "artists": [
    {
      "external_urls": {
        "spotify": "https://open.spotify.com/artist/75EZuo5MHV2572NRpMWotC"
      },
      "href": "https://api.spotify.com/v1/artists/75EZuo5MHV2572NRpMWotC",
      "id": "75EZuo5MHV2572NRpMWotC",
      "name": "Crystal Fighters",
      "type": "artist",
      "uri": "spotify:artist:75EZuo5MHV2572NRpMWotC"
    }
  ],
  "disc_number": 1,
  "duration_ms": 199526,
  "explicit": false,
  "external_ids": {
    "isrc": "GBE7C1300107"
  },
  "external_urls": {
    "spotify": "https://open.spotify.com/track/340nB6iDnGpaofYoSg8BnL"
  },
  "href": "https://api.spotify.com/v1/tracks/340nB6iDnGpaofYoSg8BnL",
  "id": "340nB6iDnGpaofYoSg8BnL",
  "is_local": false,
  "is_playable": true,
  "linked_from": {
    "external_urls": {
      "spotify": "https://open.spotify.com/track/2eA4ws3EjBcetLJyG8kCNV"
    },
    "href": "https://api.spotify.com/v1/tracks/2eA4ws3EjBcetLJyG8kCNV",
    "id": "2eA4ws3EjBcetLJyG8kCNV",
    "type": "track",
    "uri": "spotify:track:2eA4ws3EjBcetLJyG8kCNV"
  },
  "name": "Love Natural",
  "popularity": 52,
  "preview_url": "https://p.scdn.co/mp3-preview/5f9652bbae95af1ecb14b5b58b35458f10ea6580?cid=774b29d4f13844c495f206cafdad9c86",
  "track_number": 7,
  "type": "track",
  "uri": "spotify:track:340nB6iDnGpaofYoSg8BnL"
}

 

0 Replies
SUGGESTED POSTS