Commit c241d7d0 authored by Sidorela Uku's avatar Sidorela Uku
Browse files

added server header request

parent b7ec9a6a
Pipeline #993 passed with stage
in 14 seconds
......@@ -19,14 +19,6 @@
<link rel="stylesheet" type="text/css" href="css/animate.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css">
<style type="text/css">
.playButton[paused] {
background-image: url(http://radioblog.al/wp-content/themes/radioblog/img/play.png) !important;
}
</style>
</head>
......
......@@ -111,6 +111,7 @@ function Page() {
$historicDiv[n].classList.add('slideInRight');
}
xhttp.open('GET', 'https://itunes.apple.com/search?term=' + info.artist + ' ' + info.song + '&media=music&limit=1', true);
xhttp.setRequestHeader("Content-Type", "audio/mpeg");
xhttp.send();
setTimeout(function () {
......@@ -192,6 +193,7 @@ function Page() {
}
}
xhttp.open('GET', 'https://itunes.apple.com/search?term=' + artist + ' ' + song + '&media=music&limit=1', true);
xhttp.setRequestHeader("Content-Type", "audio/mpeg");
xhttp.send();
}
......@@ -240,6 +242,7 @@ function Page() {
}
}
xhttp.open('GET', 'https://api.vagalume.com.br/search.php?apikey=' + API_KEY + '&art=' + currentArtist + '&mus=' + currentSong.toLowerCase(), true);
xhttp.setRequestHeader("Content-Type", "audio/mpeg");
xhttp.send()
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment