Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Missing preview_url from some tracks #248

Closed
brodin opened this issue Jun 7, 2016 · 2 comments
Closed

Missing preview_url from some tracks #248

brodin opened this issue Jun 7, 2016 · 2 comments

Comments

@brodin
Copy link

brodin commented Jun 7, 2016

When working with a playback feature built upon the provided mp3 preview for a track I noticed that they sometime are missing - is this intended? The api documentation don't mention the possibility of this value being null, but maybe I am just reading it wrong?

Example request
GET /v1/tracks/6ZllZRW9urRfEUdmtMM3lE

Response:

{
  "album" : {
    "album_type" : "single",
    "available_markets" : [ ],
    "external_urls" : {
      "spotify" : "https://open.spotify.com/album/29tIrwlbkGnVxs3aQ4zIew"
    },
    "href" : "https://api.spotify.com/v1/albums/29tIrwlbkGnVxs3aQ4zIew",
    "id" : "29tIrwlbkGnVxs3aQ4zIew",
    "images" : [ {
      "height" : 640,
      "url" : "https://i.scdn.co/image/056e463114528a1e4c9eddbe804c284be45d3da0",
      "width" : 640
    }, {
      "height" : 300,
      "url" : "https://i.scdn.co/image/bdccfd4e9327cd12f1648fba5b3b163939600eea",
      "width" : 300
    }, {
      "height" : 64,
      "url" : "https://i.scdn.co/image/e8b95d8f337e66475bd9a02b08aa91715fc1c44e",
      "width" : 64
    } ],
    "name" : "Be Alright",
    "type" : "album",
    "uri" : "spotify:album:29tIrwlbkGnVxs3aQ4zIew"
  },
  "artists" : [ {
    "external_urls" : {
      "spotify" : "https://open.spotify.com/artist/66CXWjxzNUsdJxJ2JdwvnR"
    },
    "href" : "https://api.spotify.com/v1/artists/66CXWjxzNUsdJxJ2JdwvnR",
    "id" : "66CXWjxzNUsdJxJ2JdwvnR",
    "name" : "Ariana Grande",
    "type" : "artist",
    "uri" : "spotify:artist:66CXWjxzNUsdJxJ2JdwvnR"
  } ],
  "available_markets" : [ ],
  "disc_number" : 1,
  "duration_ms" : 177293,
  "explicit" : false,
  "external_ids" : {
    "isrc" : "USUM71601797"
  },
  "external_urls" : {
    "spotify" : "https://open.spotify.com/track/6ZllZRW9urRfEUdmtMM3lE"
  },
  "href" : "https://api.spotify.com/v1/tracks/6ZllZRW9urRfEUdmtMM3lE",
  "id" : "6ZllZRW9urRfEUdmtMM3lE",
  "name" : "Be Alright",
  "popularity" : 74,
  "preview_url" : null,
  "track_number" : 1,
  "type" : "track",
  "uri" : "spotify:track:6ZllZRW9urRfEUdmtMM3lE"
}

Here are some track ids that are missing a preview_url:

  • 3uSGz0jJ1ejqKIIYYNRczu
  • 4SYBIlsAV3BChdmBfokomL
  • 6ZllZRW9urRfEUdmtMM3lE
  • 6NCyxy0ymVNqJXTvcbgpoY
  • 5jZKRKvidJuG9wBammhyMR
@jolantz
Copy link

jolantz commented Jun 8, 2016

+1

@brodin
Copy link
Author

brodin commented Jun 9, 2016

Just realised to search for closed issues and found this one #148 that explains the need for specifying market when searching for a track!

@brodin brodin closed this as completed Jun 9, 2016
@bih bih added the duplicate label Aug 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants