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

test

parent bf0c6e18
......@@ -183,15 +183,16 @@ class Media {
//$array["rating"] = $imdb->getRating();
//$array["Genre"] = $imdb->getGenre();
//$array["Schauspieler"] = $imdb->getCastAsOwn(0, false);
$fsk = $imdb->getCertification();
$fsktemp = $imdb->getCertification();
//var_dump($fsk);
/*if(!(strpos( $fsk,"West Germany") == false)){
$fsk = trim(substr($fsk,strpos( $fsk,"West Germany")+13,3));
}else*/
if(!(strrpos( $fsk,"Germany") == false)){
$fsk = trim(substr($fsk,strrpos( $fsk,"Germany")+8,3));
if(!(strrpos( $fsktemp,"Germany") == false)){
$fsk = trim(substr($fsktemp,strrpos( $fsk,"Germany")+8,3));
}else{
break;
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