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) {

File diff suppressed because one or more lines are too long

View File

@ -77,7 +77,7 @@
// Release details
// These are automatically injected to built HTML
var build = "1528276514";
var build = "1528498295";
var version = "3.21.1";
// Construct the script tag

View File

@ -116,7 +116,6 @@ export 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(