Commit 30562446 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 248cd9e5
......@@ -184,15 +184,17 @@ class Media {
//$array["Schauspieler"] = $imdb->getCastAsOwn(0, false);
$fsk = $imdb->getCertification();
var_dump($fsk);
if(!(strrpos( $fsk,"Germany") == false)){
$fsk = trim(substr($fsk,strrpos( $fsk,"Germany")+7,3));
if(!(strpos( $fsk,"West Germany") == false)){
$fsk = trim(substr($fsk,strpos( $fsk,"Germany")+8,3));
}else{
break;
}
} else{
echo $this->Console->error("imdbID nicht bei imdb gefunden!").PHP_EOL;
//file_put_contents("./phpTestout/".$array["imdbID"].".txt", "Keine Infos auf imdbID gefunden: ".$Pfad.$FilenameOrg.PHP_EOL, FILE_APPEND);
return false;
break;
}
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