Commit 595278f8 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 21d35661
......@@ -834,7 +834,7 @@ class Media {
}
if(!file_exists($this->config["CoverDir"]."Filme/background/".$Film["imdbID"].".jpg")){
echo "Lade Hintergrundbild für (".$Film["imdbID"].") von fanart.tv ....";
$fanart = jsonCacheDecoder("http://webservice.fanart.tv/v3/movies/tt".$Film["imdbID"]."?api_key=".$this->config["ApiKeys"]['Fanart_Key']);
$fanart = json_decode(file_get_contents("http://webservice.fanart.tv/v3/movies/tt".$Film["imdbID"]."?api_key=".$this->config["ApiKeys"]['Fanart_Key']),true);
if(isset($fanart["moviebackground"][0]["url"])){
$url = $fanart["moviebackground"][0]["url"];
shell_exec("wget ".$url." -O ".$this->config["CoverDir"]."Filme/background/".$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