Genius API support for accented characters; fixes #284

This commit is contained in:
James Barnsley
2018-06-09 10:55:56 +12:00
parent 70c02791f1
commit 07dd021047
4 changed files with 2 additions and 4 deletions

View File

@ -65657,7 +65657,6 @@ function findTrackLyrics(track) {
query = query.toLowerCase();
query = query.replace(/\([^)]*\) */g, ''); // anything in circle-braces
query = query.replace(/\([^[]*\] */g, ''); // anything in square-braces
query = query.replace(/[^A-Za-z0-9\s]/g, ''); // non-alphanumeric
sendRequest(dispatch, getState, 'search?q=' + encodeURIComponent(query)).then(function (response) {
if (response.response.hits && response.response.hits.length > 0) {