Skip to content

Commit

Permalink
fix: searchMusicLibrary with ":" or "/" characters in the album name …
Browse files Browse the repository at this point in the history
…does not yield results (#453). Fixes #450
  • Loading branch information
yoogie27 authored and bencevans committed Jan 6, 2020
1 parent 72c40c8 commit 934cf74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sonos.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Sonos.prototype.searchMusicLibrary = async function (searchType, searchTerm, req
let searches = `${searchTypes[searchType]}${separator}`

if (searchTerm && searchTerm !== '') {
searches = searches.concat(encodeURI(searchTerm))
searches = searches.concat(encodeURIComponent(searchTerm))
}

var opts = {
Expand Down

0 comments on commit 934cf74

Please sign in to comment.