Commit 06741063 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 6fd7534f
......@@ -318,10 +318,12 @@ class Media {
$result = $mysqli->query($Query); //TODO 3D überprüfung!!!
if($mysqli->error != ""){ echo "Mysql-Fehler: ".$mysqli->error.PHP_EOL; return false;}
$counterNotFound = 0;
shell_exec("rm ".$this->config["CoverDir"]."*");
shell_exec("wget http://mediadb.ddns.net/cover/Filme/full/0000000.jpg -O ".$this->config["CoverDir"]."0000000.jpg");
while ($Film = $result->fetch_assoc()){
if(!file_exists($this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg")){
echo "Lade Cover (".$Film["imdbID"].") von Markus ....";
//shell_exec("wget http://mediadb.ddns.net/cover/Filme/full/".$Film["imdbID"].".jpg -P ".$this->config["CoverDir"]);
shell_exec("wget http://mediadb.ddns.net/cover/Filme/full/".$Film["imdbID"].".jpg -P ".$this->config["CoverDir"]);
if(!file_exists($this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg")){
echo " fail!".PHP_EOL."Lade Cover von imdb ....";
$imdb = new IMDB("http://www.imdb.com/title/tt".$Film["imdbID"]."/");
......@@ -330,7 +332,7 @@ class Media {
echo "fail !".PHP_EOL;
$counterNotFound++;
}else{
echo "wget ".$url." -P ".$this->config["CoverDir"]." -O ".$Film["imdbID"].".jpg".PHP_EOL;
shell_exec("wget ".$url." -O ".$this->config["CoverDir"].$Film["imdbID"].".jpg");
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