Commit cbadac77 authored by Nico Schallehn's avatar Nico Schallehn

neuer test

parent 5b6464a6
......@@ -1369,16 +1369,17 @@ class Media {
//if(filesize($this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg")==0){
$fanart = $this->jsonCacheDecoder("http://webservice.fanart.tv/v3/movies/tt".$Film["imdbID"]."?api_key=".$this->config["ApiKeys"]['Fanart_Key']);
$posterURL = "";
if(isset($fanart["movieposter"][0]["url"])) {
$posterURL = $fanart["movieposter"][0]["url"];
foreach ($fanart["movieposter"] as $key2 => $value2){
if($value2["lang"] == "de"){
$posterURL = $value2["url"];
}
if(($value2["lang"] == "en") AND (strlen($posterURL)== 0)){
$posterURL = $value2["url"];
}
}
}else{
$posterURL = "";
}
if(!(strlen($posterURL)== 0)){
shell_exec("wget ".$posterURL." -O ".$this->config["CoverDir"]."Filme/full/".$Film["imdbID"].".jpg > /dev/null 2>&1"); //");//
......
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