Add Some more API info to extract Now Playing INFO from MEDIA CP panels.

Este commit está contenido en:
Joey
2023-06-21 20:17:38 +00:00
cometido por GitHub
padre a2c9f65e0e
commit d78e32c334

Ver fichero

@@ -8,6 +8,12 @@ var API_SERVICE = 'DEEZER';
// Change Stream URL Here, Supports, ICECAST, ZENO, SHOUTCAST, RADIOJAR and any other stream service.
const URL_STREAMING = 'https://stream-51.zeno.fm/cfhkm5fs1uhvv?zs=HOu6hxV1SG-7iGi9WGVTqQ';
//PASTE YOUR MEDIA CP JSON URL HERE TO GET NOW PLAYING SONG TITLE.
const MEDIACP_JSON_URL = ''
//API URL / if you use MEDIA CP, CHANGE THIS TO : https://api.streamafrica.net/metadata/mediacp.php?url='+MEDIACP_JSON_URL
const API_URL = 'https://api.streamafrica.net/metadata/index.php?z='+URL_STREAMING
// Visit https://api.vagalume.com.br/docs/ to get your API key
const API_KEY = "18fe07917957c289983464588aabddfb";
@@ -375,7 +381,7 @@ function getStreamingData() {
var d = new Date();
// Requisition with timestamp to prevent cache on mobile devices
xhttp.open('GET', 'https://api.streamafrica.net/metadata/index.php?z='+URL_STREAMING);
xhttp.open('GET', API_URL);
xhttp.send();
}