Commit 64414a51 authored by Nico Schallehn's avatar Nico Schallehn

bugfix 4

parent 9dd27acd
......@@ -1378,14 +1378,17 @@ class Media {
}
}
}
shell_exec("wget ".$posterURL." -O ".$this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg > /dev/null 2>&1"); //");//
if(!(strlen($posterURL)== 0)){
shell_exec("wget ".$posterURL." -O ".$this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg > /dev/null 2>&1"); //");//
}
//}
if(filesize($this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg")==0){
//if(filesize($this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg")==0){
if(!file_exists($this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg")){
echo " fail!".PHP_EOL." Lade Cover von imdb/tmdb ....";
$imdb = new IMDB("http://www.imdb.com/title/tt".$Film["imdbID"]."/");
$url = $imdb->getPoster("big");
......
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