Commit 0500a741 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 229eb3e7
......@@ -830,7 +830,7 @@ class Media {
}
}
if(!file_exists($this->config["CoverDir"]."Filme/background/".$Film["imdbID"].".jpg")){
echo " Lade Hintergrundbild von fanart.tv ....";
echo " Lade Hintergrundbild von fanart.tv ....";
$Data = @file_get_contents("http://webservice.fanart.tv/v3/movies/tt".$Film["imdbID"]."?api_key=".$this->config["ApiKeys"]['Fanart_Key']);
if(!($Data === false)){
$fanart = json_decode($Data,true);
......@@ -847,7 +847,7 @@ class Media {
}
if(!file_exists($this->config["CoverDir"]."Filme/background/".$Film["imdbID"].".jpg")){
echo " Lade Hintergrundbild von themoviedb.org ....";
echo " Lade Hintergrundbild von themoviedb.org ....";
$url = "https://api.themoviedb.org/3/find/tt".$Film["imdbID"]."?external_source=imdb_id&api_key=".$this->config["ApiKeys"]['Tmdb_Key']."&language=de".PHP_EOL; //$this->config["ApiKeys"]['Tmdb_Key']
$tmdb = $this->jsonCacheDecoder($url);
if(isset($tmdb["movie_results"][0]["backdrop_path"])){
......
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