Commit de2c76ea authored by Nico Schallehn's avatar Nico Schallehn

test

parent 4ef04690
......@@ -811,9 +811,6 @@ class Media {
$url = $imdb->getPoster("big");
if(strpos($url, "imdb-share")>3){
//TODO 3. Quelle für cover einbauen
//$fanart = jsonCacheDecoder("http://webservice.fanart.tv/v3/movies/tt".$Film["imdbID"]."?api_key=".$this->config["ApiKeys"]['Fanart_Key']);
echo "fail !".PHP_EOL;
echo "http://webservice.fanart.tv/v3/movies/tt".$Film["imdbID"]."?api_key=".$this->config["ApiKeys"]["Fanart_Key"].PHP_EOL;
$counterNotFound++;
}else{
......@@ -835,8 +832,10 @@ class Media {
shell_exec("rm ".$this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg");
}
}
else{
//echo "Überspringe ".$Film["imdbID"].PHP_EOL;
if(!file_exists($this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg")){
//$fanart = jsonCacheDecoder("http://webservice.fanart.tv/v3/movies/tt".$Film["imdbID"]."?api_key=".$this->config["ApiKeys"]['Fanart_Key']);
echo "http://webservice.fanart.tv/v3/movies/tt".$Film["imdbID"]."?api_key=".$this->config["ApiKeys"]["Fanart_Key"].PHP_EOL;
}
}
echo $this->Console->getColoredString("Coverdownload > Serien und Staffeln", "black", "light_gray") .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