Commit 64ddd722 authored by Nico Schallehn's avatar Nico Schallehn

test

parent ccc637d4
...@@ -257,8 +257,10 @@ class Media { ...@@ -257,8 +257,10 @@ class Media {
echo $this->Console->error("kein Trailer gefunden für imdbID ".$imdbID."!").PHP_EOL; echo $this->Console->error("kein Trailer gefunden für imdbID ".$imdbID."!").PHP_EOL;
} }
} }
return true;
}else{ }else{
echo " fail1!".PHP_EOL; echo " fail1!".PHP_EOL;
return false;
} }
} }
...@@ -360,7 +362,10 @@ class Media { ...@@ -360,7 +362,10 @@ class Media {
if ($array["fsk"] == false){ if ($array["fsk"] == false){
unset($array["fsk"]); unset($array["fsk"]);
} }
$this->gibTMDBdata ( $array["imdbID"], $array); if(!$this->gibTMDBdata ( $array["imdbID"], $array)){
file_put_contents("./phpTestout/".$array["imdbID"].".txt", "Keine Infos auf TMDB gefunden: ".$Pfad.$FilenameOrg.PHP_EOL, FILE_APPEND);
return false; //TODO Abbruch wenn keine Daten auf TMDB gefunden
}
......
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