Commit fb5c318b authored by Nico Schallehn's avatar Nico Schallehn

test

parent 810beee2
...@@ -10,9 +10,10 @@ function jsonCacheDecoder($url){ ...@@ -10,9 +10,10 @@ function jsonCacheDecoder($url){
$tmdbKey = "b1ddcc7d16281ce09f692896f882ba9d"; $tmdbKey = "b1ddcc7d16281ce09f692896f882ba9d";
$imdbID = "0489270"; $imdbID = "0489270";
$url = "https://api.themoviedb.org/3/find/tt".$imdbID."?external_source=imdb_id&api_key=".$tmdbKey."&language=de"; //$this->config["ApiKeys"]['Tmdb_Key'] $url = "https://api.themoviedb.org/3/find/tt".$imdbID."?external_source=imdb_id&api_key=".$tmdbKey."&language=de".PHP_EOL; //$this->config["ApiKeys"]['Tmdb_Key']
echo $url; echo $url;
$tmdb = jsonCacheDecoder($url); $tmdb = jsonCacheDecoder($url);
var_dump($tmdb);
if(isset($tmdb["movie_results"])){ if(isset($tmdb["movie_results"])){
$tmdbURL="https://api.themoviedb.org/3/movie/".$tmdb["movie_results"][0]["id"]."?api_key=".$tmdbKey."&language=de&append_to_response=trailers"; $tmdbURL="https://api.themoviedb.org/3/movie/".$tmdb["movie_results"][0]["id"]."?api_key=".$tmdbKey."&language=de&append_to_response=trailers";
echo $tmdbURL.PHP_EOL; echo $tmdbURL.PHP_EOL;
......
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