add anima deep tech stream
This commit is contained in:
parent
3f23a53eae
commit
0255d0c7e1
34
id.php
34
id.php
|
@ -8,8 +8,7 @@ function getIDshout($radioip,$radioport,$postfix = "GET /7.html HTTP/1.1\nUser-A
|
||||||
$read = fread($open,255);
|
$read = fread($open,255);
|
||||||
$exploded = explode(",",$read);
|
$exploded = explode(",",$read);
|
||||||
if ($exploded[6] == '' || $exploded[6] == '</body></html>') {
|
if ($exploded[6] == '' || $exploded[6] == '</body></html>') {
|
||||||
$text = 'streaming'; } else { $text = $exploded[6];
|
$text = 'streaming'; } else { $text = $exploded[6]; }
|
||||||
}
|
|
||||||
$id = str_replace("</body></html>","",$text);
|
$id = str_replace("</body></html>","",$text);
|
||||||
} else { return false; }
|
} else { return false; }
|
||||||
fclose($open);
|
fclose($open);
|
||||||
|
@ -43,22 +42,33 @@ function getIDice($streamingUrl, $interval, $offset = 0, $headers = true) {
|
||||||
} else
|
} else
|
||||||
throw new Exception("Unable to open stream [{$streamingUrl}]");
|
throw new Exception("Unable to open stream [{$streamingUrl}]");
|
||||||
}
|
}
|
||||||
|
// Anima Amoris
|
||||||
|
function getIDanima($amoris) {
|
||||||
|
$url = "http://amoris.sknt.ru/sc/".$amoris."/stats.json";
|
||||||
|
$headers = array('User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0');
|
||||||
|
$ch = curl_init();
|
||||||
|
curl_setopt($ch, CURLOPT_URL, $url);
|
||||||
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
|
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||||
|
$data = curl_exec($ch);
|
||||||
|
curl_close($ch);
|
||||||
|
$data = json_decode($data, true);
|
||||||
|
if (!empty($data)) $data = $data["songtitle"];
|
||||||
|
if (substr($data, -7) == "sknt.ru") $data = stristr($data, " * anima.sknt.ru", true);
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
// first
|
// first
|
||||||
echo "id:;:";
|
echo "id:;:";
|
||||||
try {
|
try {
|
||||||
$firststr = getIDshout("93.100.18.126","8000"); // Anima Amoris [DubTech Mix]
|
echo getIDanima("3"); // Anima Amoris [DubTech]
|
||||||
if (substr($firststr, -7) == "sknt.ru") echo stristr($firststr," * anima.sknt.ru",true);
|
|
||||||
else echo $firststr;
|
|
||||||
} catch (Exception $exfirst) {
|
} catch (Exception $exfirst) {
|
||||||
echo "unavailable";
|
echo "unavailable";
|
||||||
}
|
}
|
||||||
// second
|
// second
|
||||||
echo ":;:";
|
echo ":;:";
|
||||||
try {
|
try {
|
||||||
$secondstr = getIDshout("93.100.18.126","8024"); // Anima Amoris [DubTech Mix]
|
echo getIDanima("15"); // Anima Amoris [DubTech Mix]
|
||||||
if (substr($secondstr, -7) == "sknt.ru") echo stristr($secondstr," * anima.sknt.ru",true);
|
|
||||||
else echo $secondstr;
|
|
||||||
} catch (Exception $exsecond) {
|
} catch (Exception $exsecond) {
|
||||||
echo "unavailable";
|
echo "unavailable";
|
||||||
}
|
}
|
||||||
|
@ -79,9 +89,9 @@ try {
|
||||||
// fifth
|
// fifth
|
||||||
echo ":;:";
|
echo ":;:";
|
||||||
try {
|
try {
|
||||||
getIDice("http://94.130.113.214:8000/dubtechno", 19200); // Schizoid Dub Techno
|
$fifthIDice = getIDice("http://94.130.113.214:8000/dubtechno", 19200); // Schizoid Dub Techno
|
||||||
if ($getIDice = "ÿþf - ÿþR") echo "online streaming";
|
if (bin2hex($fifthIDice) == "fffe66202d20fffe52") echo "online streaming";
|
||||||
else echo $getIDice;
|
else echo $fifthIDice;
|
||||||
} catch (Exception $exfifth) {
|
} catch (Exception $exfifth) {
|
||||||
echo "unavailable";
|
echo "unavailable";
|
||||||
}
|
}
|
||||||
|
@ -116,7 +126,7 @@ try {
|
||||||
// tenth
|
// tenth
|
||||||
echo ":;:";
|
echo ":;:";
|
||||||
try {
|
try {
|
||||||
echo getIDshout("2.58.194.54","8852"); // Deep Planet on MixLive.ie
|
echo getIDanima("8"); // Anima Amoris [MinimalDeepTech]
|
||||||
} catch (Exception $extenth) {
|
} catch (Exception $extenth) {
|
||||||
echo "unavailable";
|
echo "unavailable";
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,9 +98,9 @@ a8" `Y88 88 88 88P' "8a 88 a8P_____88 a8" "" 88P' "8a
|
||||||
</td><td><audio controls src="http://prem2.di.fm:80/dubtechno_hi?266a3dc03aaa30a0807d9062" preload="none"></audio></td><td>
|
</td><td><audio controls src="http://prem2.di.fm:80/dubtechno_hi?266a3dc03aaa30a0807d9062" preload="none"></audio></td><td>
|
||||||
<h6 id="ninth"></h6>
|
<h6 id="ninth"></h6>
|
||||||
</td></tr><tr><td>
|
</td></tr><tr><td>
|
||||||
<h5 align="right"><b><a href="https://mixlive.ie/stream/deep-planet">Deep Planet on MixLive.ie</a></b></h5>
|
<h5 align="right"><b><a href="http://anima.sknt.ru">Anima Amoris [Deep Techno]</a></b></h5>
|
||||||
<h5 align="right"><b><a href="http://mixlive.ie:8852">http://mixlive.ie:8852</a></b></h5>
|
<h5 align="right"><b><a href="http://amoris.sknt.ru:8010">http://amoris.sknt.ru:8010</a></b></h5>
|
||||||
</td><td><audio controls preload="none"><source src="http://2.58.194.54:8852/stream" type="audio/mpeg"></audio></td><td>
|
</td><td><audio controls preload="none"><source src="http://amoris.sknt.ru/minimal.mp3" type="audio/mpeg"></audio></td><td>
|
||||||
<h6 id="tenth"></h6>
|
<h6 id="tenth"></h6>
|
||||||
</td><td>
|
</td><td>
|
||||||
</td></tr><tr><td colspan="3">
|
</td></tr><tr><td colspan="3">
|
||||||
|
|
Loading…
Reference in New Issue