Commit 7cfdaca3 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 2cbce295
......@@ -184,9 +184,14 @@ class Media {
//$array["Schauspieler"] = $imdb->getCastAsOwn(0, false);
$fsk = $imdb->getCertification();
var_dump($fsk);
if(!(strrpos( $fsk,"Germany") == false)){
$array["imdbID"] = substr($fsk,strrpos( $fsk,"Germany")+7,10);
}
var_dump($fsk);
} 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);
//file_put_contents("./phpTestout/".$array["imdbID"].".txt", "Keine Infos auf imdbID gefunden: ".$Pfad.$FilenameOrg.PHP_EOL, FILE_APPEND);
return false;
}
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