diff --git a/js/script.js b/js/script.js index eefdf26..c2176d9 100644 --- a/js/script.js +++ b/js/script.js @@ -2,6 +2,7 @@ const RADIO_NAME = 'Game! Radio 1'; +// SELECT ARTWORK PROVIDER, ITUNES, DEEZER & SPOTIFY, eg : spotify var API_SERVICE = 'deezer'; var zenoid = 'cfhkm5fs1uhvv' @@ -95,7 +96,7 @@ function Page() { $historicDiv[n].classList.add('animated'); $historicDiv[n].classList.add('slideInRight'); } - xhttp.open('GET', 'https://api.streamafrica.net/search.php?query=' + info.artist + ' ' + info.song + '&service='+API_SERVICE); + xhttp.open('GET', 'https://api.streamafrica.net/search.php?query=' + info.artist + ' ' + info.song + '&service=' + API_SERVICE.toLowerCase()); xhttp.send(); setTimeout(function () { @@ -174,7 +175,7 @@ function Page() { } } } - xhttp.open('GET', 'https://api.streamafrica.net/search.php?query=' + artist + ' ' + song + '&service=' + API_SERVICE); + xhttp.open('GET', 'https://api.streamafrica.net/search.php?query=' + artist + ' ' + song + '&service=' + API_SERVICE.toLowerCase()); xhttp.send(); }