Commit 98c12d31 authored by Nico Schallehn's avatar Nico Schallehn

test

parent ca8b1e46
<?php <?php
ini_set("display_errors","On"); ini_set("display_errors","On");
error_reporting (E_ALL); error_reporting (E_ALL);
include("imdb.class.php");
$tmdbKey = "b1ddcc7d16281ce09f692896f882ba9d";
$url = "https://api.themoviedb.org/3/find/tt".$imdbID."?external_source=imdb_id&api_key=".$tmdbKey."&language=de"; //$this->config["ApiKeys"]['Tmdb_Key']
echo $url;
$tmdb = $this->jsonCacheDecoder($url);
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";
echo $tmdbURL.PHP_EOL;
$tmdbData1 = $this->jsonCacheDecoder($tmdbURL);
var_dump($tmdbData1);
}
/*include("imdb.class.php");
include("imdb2.class.php"); include("imdb2.class.php");
$imdb = new IMDB("http://www.imdb.com/title/tt1815862/"); $imdb = new IMDB("http://www.imdb.com/title/tt1815862/");
...@@ -22,7 +36,7 @@ $movie = $imdb2->find_by_id("tt1815862"); ...@@ -22,7 +36,7 @@ $movie = $imdb2->find_by_id("tt1815862");
} }*/
/* /*
......
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