diff --git a/bg.gif b/bg.gif new file mode 100644 index 0000000..da71a25 Binary files /dev/null and b/bg.gif differ diff --git a/id_fetch.php b/id_fetch.php index 2912f44..e5ec430 100644 --- a/id_fetch.php +++ b/id_fetch.php @@ -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"); diff --git a/id_time.txt b/id_time.txt index e69de29..55f04f2 100644 --- a/id_time.txt +++ b/id_time.txt @@ -0,0 +1 @@ +365 \ No newline at end of file diff --git a/index.html b/index.html index 8fcae45..2958695 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ a8" `Y88 88 88 88P' "8a 88 a8P_____88 a8" "" 88P' "8a
@@ -48,9 +48,9 @@ a8" `Y88 88 88 88P' "8a 88 a8P_____88 a8" "" 88P' "8a