Skip to content

Commit

Permalink
better search
Browse files Browse the repository at this point in the history
  • Loading branch information
crohrer committed May 1, 2017
1 parent 67e58b0 commit 6557117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spotifyRadioPlaylist",
"version": "2.3.1",
"version": "2.3.2",
"dependencies": {
"bluebird": "^3.5.0",
"cheerio": "^0.19.0"
Expand Down
2 changes: 1 addition & 1 deletion spotifySearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function sendSearchRequest(track, timeOut){
function makeRequest(resolve){
var spotifySearchReq = https.request({
hostname: "api.spotify.com",
path: "/v1/search?type=track&q=" + encodeURIComponent(track.artist+' - '+track.title)
path: "/v1/search?type=track&q=artist:"+encodeURIComponent(track.artist+' ')+'track:'+encodeURIComponent(track.title)
}, function(res){
spotifyHelper.checkForRateLimit(res, 'searching track', () => sendSearchRequest(track))
.then(() => {
Expand Down

0 comments on commit 6557117

Please sign in to comment.