AnimaAmoris fixes

This commit is contained in:
2022-07-17 16:56:28 +03:00
parent 0255d0c7e1
commit 0ce64e3c5c
2 changed files with 9 additions and 9 deletions

8
id.php
View File

@@ -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";
}