12 dub deep tech streams

This commit is contained in:
zlax committed 2026-10-31 20:19:41 +03:00
1 parent e9d2f34fa6
commit 013761c6f7
4 files changed
+36 -36

No files matched your search

+19 -20
View File
@@ -46,25 +46,22 @@ function getIDice($streamingUrl, $interval, $offset = 0, $headers = true) {
}
// Anima Amoris
function getIDanima($amoris) {
$url = "http://amoris.sknt.ru/".$amoris."/stats.json";
$url = "https://amoris.sknt.ru/".$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);
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($ch, CURLOPT_TIMEOUT, 4);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
$data = curl_exec($ch);
if (curl_errno($ch)) {
curl_close($ch);
return "unavailable";
}
curl_close($ch);
$datajson = json_decode($data, true);
if (!empty($datajson)) $data = $data["songtitle"];
$data = strstr($data, 'songtitle":"');
$data = substr($data, 12);
if (substr($data, -11) == 'sknt.ru"});') $data = stristr($data, ' * amoris.sknt.ru"});', true);
$data = substr(strstr($data, 'songtitle":"'), 12);
$data = substr($data, 0, -20);
return $data;
}
@@ -99,9 +96,7 @@ try {
// fifth
$tags .= ":;:";
try {
$fifthIDice = getIDice("http://94.130.113.214:8000/dubtechno", 19200); // Schizoid Dub Techno
if (bin2hex($fifthIDice) == "fffe66202d20fffe52" || "fffe53202d20fffe53" ) $tags .= "online streaming";
else $tags .= $fifthIDice;
$tags .= getIDice("https://radio.hearme.fm:8304/stream", 19200); // HearMe Dub Techno
} catch (Exception $exfifth) {
$tags .= "unavailable";
}
@@ -122,38 +117,42 @@ try {
// eighth
$tags .= ":;:";
try {
$tags .= getIDanima("minimal"); // Anima Amoris [MinimalDeepTech]
$eight_id .= getIDice("https://radio.euphonicmoments.com/listen/euphonic-moments/Euphonicmoments_radio128kbps.mp3", 19200); // Euphonic Moments Radio
$cut_eight = strstr($eight_id, " - euphonic moments ", true);
if (!$cut_eight) $cut_eight = strstr($eight_id, " - Euphonic Moments ", true);
if (!$cut_eight) $cut_eight = $eight_id;
$tags .= $cut_eight;
} catch (Exception $exeighth) {
$tags .= "unavailable";
}
// ninth
$tags .= ":;:";
try {
$tags .= getIDanima("deeptech"); // Anima Amoris [Deep Tech House]
$tags .= getIDice("http://135.148.46.104:8010/radio.mp3", 19200); // dubtechno247station
} catch (Exception $extenth) {
$tags .= "unavailable";
}
// tenth
$tags .= ":;:";
try {
$tags .= getIDice("https://best-of-techno.stream.laut.fm/best-of-techno", 19200); // Best of techno
$tags .= getIDanima("minimal"); // Anima Amoris [MinimalDeepTech]
} catch (Exception $extenth) {
$tags .= "unavailable";
}
// eleventh
$tags .= ":;:";
try {
$tags .= getIDshout("148.251.43.231","8750"); // Minimal Mix Radio
$tags .= getIDanima("deeptech"); // Anima Amoris [Deep Tech House]
} catch (Exception $exseventh) {
$tags .= "unavailable";
}
// twelfth
$tags .= ":;:";
//try {
// $tags .= getIDice("http://prem2.di.fm:80/dubtechno_hi?266a3dc03aaa30a0807d9062", 19200); // Digitally Imported Dub Techno
//} catch (Exception $exninth) {
$tags .= "unavailable (commercial)";
//}
try {
$tags .= getIDshout("148.251.43.231","8750"); // Minimal Mix Radio
} catch (Exception $exninth) {
$tags .= "unavailable";
}
$tags .= ":;:";
$id_tags = fopen("id_tags.txt", "w") or die("Unable to open file");