Commit 9b84125d authored by Nico Schallehn's avatar Nico Schallehn

test

parent 2bd71e8e
......@@ -187,14 +187,19 @@ class Media {
$fsktemp = $imdb->getCertification();
$fskbool= false;
if(!(strpos( $fsktemp,"Germany") === false)){
$fsk = trim(substr($fsktemp,strpos( $fsktemp,"Germany")+8,3));
}else{
if(in_array($fsk, array(0, 6, 12,16,18))){
$fskbool = true;
}
}
if(!$fskbool{
$fsk = "";
//var_dump($fsktemp);
$fsk2 = file_get_contents("https://altersfreigaben.de/api2/s/tt".$Film["imdbID"]."/de");
if (is_numeric($fsk2)){
if (in_array($fsk2, array(0, 6, 12,16,18))){
$fsk = $fsk2;
}else{
echo $this->Console->error("keine fsk gefunden!").PHP_EOL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment