spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
983 stars 79 forks source link

Search returns no results when track title includes a colon #1044

Closed SHxKM closed 5 years ago

SHxKM commented 6 years ago

Issue found on September 27th 2018.

Endpoint(s):

Scope(s):

Steps to reproduce:

  1. Open the API Console
  2. Call the search endpoint with q The Best of Pantera: Far Beyond the Great Southern Cowboys' Vulgar Hits! (spotify link)

Expected behaviour:

The above release appears in the JSON response.

Actual behaviour:

The response is:

{
  "albums": {
    "href": "https://api.spotify.com/v1/search?query=The+Best+of+Pantera%3A+Far+Beyond+the+Great+Southern+Cowboys%27+Vulgar+Hits%21+&type=album&market=US&offset=0&limit=50",
    "items": [],
    "limit": 50,
    "next": null,
    "offset": 0,
    "previous": null,
    "total": 0
  }
}

Even if the title is truncated further, the release doesn't show up. It doesn't even show up in search on the website..it seems that the colon is culprit:

(The Best of Pantera: Far Beyond the Great Southern Cowboys' Vulgar Hits! )

arirawr commented 5 years ago

This issue should now be resolved. Thanks for your report!

Please feel free to reopen if you continue to see this issue occur.

lrholmes commented 5 years ago

Hey @arirawr! I've just encountered this issue with another track: re:stacks by Bon Iver. I'm not sure if it's the same exact thing as this issue, but I just can't create a search that will return this track at all (other tracks are returned, but only covers and remixes that are all named differently: "Re: Stacks").

I've been trying it here: https://developer.spotify.com/console/get-search-item/?q=re%3Astacks&type=track&market=&limit=&offset=

Let me know if I should create a new issue for this 🙂thanks!