From fd6d9295d1708b854619f217a778c9d28368d438 Mon Sep 17 00:00:00 2001 From: Joey <43940776+adoboligh1@users.noreply.github.com> Date: Sun, 7 May 2023 00:21:21 +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 e3bae48..eefdf26 100644 --- a/js/script.js +++ b/js/script.js @@ -2,6 +2,7 @@ const RADIO_NAME = 'Game! Radio 1'; +var API_SERVICE = 'deezer'; var zenoid = 'cfhkm5fs1uhvv' @@ -94,7 +95,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); + xhttp.open('GET', 'https://api.streamafrica.net/search.php?query=' + info.artist + ' ' + info.song + '&service='+API_SERVICE); xhttp.send(); setTimeout(function () { @@ -173,7 +174,7 @@ function Page() { } } } - xhttp.open('GET', 'https://api.streamafrica.net/search.php?query=' + artist + ' ' + song); + xhttp.open('GET', 'https://api.streamafrica.net/search.php?query=' + artist + ' ' + song + '&service=' + API_SERVICE); xhttp.send(); }