Commit d881769e authored by Nico Schallehn's avatar Nico Schallehn

test

parent 6d846e6c
......@@ -156,6 +156,8 @@ class Media {
//$array["md5"] = md5_file($Pfad.$FilenameOrg); //TODO Einkommentieren für md5
$array["md5"] = md5_file("/tmp/".$array["imdbID"].".xml");
$array["rating"] = $imdb->getRating();
$array["Genre"] = $imdb->getGenre();
$array["Schauspieler"] = $imdb->getCast();
} else{
echo "nichts gefunden!".PHP_EOL;
}
......@@ -218,7 +220,11 @@ class Media {
if($mysqli->error != ""){ return "Mysql-Fehler: ".$mysqli->error.PHP_EOL;}
//$ret->num_rows
foreach ($DataArr as $key => $value) {
echo " ".$key." => '".$value."'".PHP_EOL;
if(in_array($key, array("Genre", "Schauspieler")) ){
echo " ".$key." => '".implode("|", $value)."'".PHP_EOL;
}else{
echo " ".$key." => '".$value."'".PHP_EOL;
}
}
$mysqli->close();
......
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