From 0b1691507ae1ff237afe652ff12fd1cd16699f5a Mon Sep 17 00:00:00 2001 From: Joey <43940776+adoboligh1@users.noreply.github.com> Date: Sun, 7 May 2023 00:28:44 +0000 Subject: [PATCH] Update script.js --- js/script.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); }