Commit daa9ea7a authored by Nico Schallehn's avatar Nico Schallehn

test

parent 1eb7d749
...@@ -250,7 +250,7 @@ class Media { ...@@ -250,7 +250,7 @@ class Media {
//TODO COVERDOWNLOAD und FANART für themovieDB //TODO COVERDOWNLOAD und FANART für themovieDB
$tmdb = $this->jsonCacheDecoder("https://api.themoviedb.org/3/find/tt".$imdbID."?external_source=imdb_id&api_key=".$this->config["ApiKeys"]['Tmdb_Key']."&language=de"); $tmdb = $this->jsonCacheDecoder("https://api.themoviedb.org/3/find/tt".$imdbID."?external_source=imdb_id&api_key=".$this->config["ApiKeys"]['Tmdb_Key']."&language=de");
if(!($tmdb == false)){ if(!($tmdb == false)){
if(isset($tmdb["movie_results"])){ if(isset($tmdb["movie_results"][0])){
if(isset($tmdb["movie_results"][0]["overview"])){ if(isset($tmdb["movie_results"][0]["overview"])){
echo " done!".PHP_EOL; echo " done!".PHP_EOL;
$DataArray["summary"]=$tmdb["movie_results"][0]["overview"]; $DataArray["summary"]=$tmdb["movie_results"][0]["overview"];
...@@ -276,7 +276,7 @@ class Media { ...@@ -276,7 +276,7 @@ class Media {
} }
}else{ }else{
$tmdbURL2="https://api.themoviedb.org/3/moreturn true;return true;vie/".$tmdb["movie_results"][0]["id"]."?api_key=".$this->config["ApiKeys"]['Tmdb_Key']."&language=en&append_to_response=trailers"; $tmdbURL2="https://api.themoviedb.org/3/movie/".$tmdb["movie_results"][0]["id"]."?api_key=".$this->config["ApiKeys"]['Tmdb_Key']."&language=en&append_to_response=trailers";
$tmdbData2 = $this->jsonCacheDecoder($tmdbURL2); $tmdbData2 = $this->jsonCacheDecoder($tmdbURL2);
if(isset($tmdbData2["trailers"]["youtube"][0]["source"])){ if(isset($tmdbData2["trailers"]["youtube"][0]["source"])){
$youtubeEN = str_replace("&hd=1", "", $tmdbData2["trailers"]["youtube"][0]["source"]); $youtubeEN = str_replace("&hd=1", "", $tmdbData2["trailers"]["youtube"][0]["source"]);
......
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