Commit 3671fd1e authored by Nico Schallehn's avatar Nico Schallehn

test

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