Commit de2c76ea authored by Nico Schallehn's avatar Nico Schallehn

test

parent 4ef04690
...@@ -811,9 +811,6 @@ class Media { ...@@ -811,9 +811,6 @@ class Media {
$url = $imdb->getPoster("big"); $url = $imdb->getPoster("big");
if(strpos($url, "imdb-share")>3){ if(strpos($url, "imdb-share")>3){
//TODO 3. Quelle für cover einbauen //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++; $counterNotFound++;
}else{ }else{
...@@ -835,8 +832,10 @@ class Media { ...@@ -835,8 +832,10 @@ class Media {
shell_exec("rm ".$this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg"); shell_exec("rm ".$this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg");
} }
} }
else{ if(!file_exists($this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg")){
//echo "Überspringe ".$Film["imdbID"].PHP_EOL; //$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; 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