AnimaAmoris fixes
This commit is contained in:
8
id.php
8
id.php
@@ -44,7 +44,7 @@ function getIDice($streamingUrl, $interval, $offset = 0, $headers = true) {
|
||||
}
|
||||
// Anima Amoris
|
||||
function getIDanima($amoris) {
|
||||
$url = "http://amoris.sknt.ru/sc/".$amoris."/stats.json";
|
||||
$url = "http://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);
|
||||
@@ -61,14 +61,14 @@ function getIDanima($amoris) {
|
||||
// first
|
||||
echo "id:;:";
|
||||
try {
|
||||
echo getIDanima("3"); // Anima Amoris [DubTech]
|
||||
echo getIDanima("dubtechno"); // Anima Amoris [DubTech]
|
||||
} catch (Exception $exfirst) {
|
||||
echo "unavailable";
|
||||
}
|
||||
// second
|
||||
echo ":;:";
|
||||
try {
|
||||
echo getIDanima("15"); // Anima Amoris [DubTech Mix]
|
||||
echo getIDanima("dubtechnomix"); // Anima Amoris [DubTech Mix]
|
||||
} catch (Exception $exsecond) {
|
||||
echo "unavailable";
|
||||
}
|
||||
@@ -126,7 +126,7 @@ try {
|
||||
// tenth
|
||||
echo ":;:";
|
||||
try {
|
||||
echo getIDanima("8"); // Anima Amoris [MinimalDeepTech]
|
||||
echo getIDanima("minimal"); // Anima Amoris [MinimalDeepTech]
|
||||
} catch (Exception $extenth) {
|
||||
echo "unavailable";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user