Commit 363f769b authored by Nico Schallehn's avatar Nico Schallehn

test

parent 570e6eb9
...@@ -257,6 +257,7 @@ class Media { ...@@ -257,6 +257,7 @@ class Media {
echo $this->Console->error("keine summary gefunden für imdbID ".$imdbID."!").PHP_EOL; echo $this->Console->error("keine summary gefunden für imdbID ".$imdbID."!").PHP_EOL;
} }
$tmdbURL="https://api.themoviedb.org/3/movie/".$tmdb["movie_results"][0]["id"]."?api_key=".$this->config["ApiKeys"]['Tmdb_Key']."&language=de&append_to_response=trailers"; $tmdbURL="https://api.themoviedb.org/3/movie/".$tmdb["movie_results"][0]["id"]."?api_key=".$this->config["ApiKeys"]['Tmdb_Key']."&language=de&append_to_response=trailers";
echo $tmdbURL;
$tmdbData1 = $this->jsonCacheDecoder($tmdbURL); $tmdbData1 = $this->jsonCacheDecoder($tmdbURL);
if(isset($tmdbData1["trailers"]["youtube"][0]["source"])){ if(isset($tmdbData1["trailers"]["youtube"][0]["source"])){
//TODO youtube Key auf 11 Zeichen prüfen!! //TODO youtube Key auf 11 Zeichen prüfen!!
......
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