Commit 2bd71e8e authored by Nico Schallehn's avatar Nico Schallehn

test

parent 9694d032
...@@ -192,9 +192,15 @@ class Media { ...@@ -192,9 +192,15 @@ class Media {
$fsk = trim(substr($fsktemp,strpos( $fsktemp,"Germany")+8,3)); $fsk = trim(substr($fsktemp,strpos( $fsktemp,"Germany")+8,3));
}else{ }else{
$fsk = ""; $fsk = "";
var_dump($fsktemp); //var_dump($fsktemp);
echo $this->Console->error("keine fsk gefunden!").PHP_EOL; $fsk2 = file_get_contents("https://altersfreigaben.de/api2/s/tt".$Film["imdbID"]."/de");
$counter++; if (is_numeric($fsk2)){
$fsk = $fsk2;
}else{
echo $this->Console->error("keine fsk gefunden!").PHP_EOL;
$fsk = "";
$counter++;
}
} }
echo " done!".PHP_EOL; echo " done!".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