Commit 0ef008a8 authored by Nico Schallehn's avatar Nico Schallehn

erster Test für serienparser

parent be1aa71a
......@@ -14,7 +14,7 @@ $imdbID = "4075124";
include("imdb.class.php");
include("imdb2.class.php");
/*
$imdbID="tt1815862";
$imdb = new IMDB("http://www.imdb.com/title/".$imdbID."/");
......@@ -43,13 +43,13 @@ if ($imdb->isReady) {
}
*/
/*
$tmdbKey = "b1ddcc7d16281ce09f692896f882ba9d";
$url = "https://api.themoviedb.org/3/find/tt"."0489270"."?external_source=imdb_id&api_key=".$tmdbKey."&language=de&append_to_response=trailers";
$url = "https://api.themoviedb.org/3/find/tt"."3006802"."?external_source=imdb_id&api_key=".$tmdbKey."&language=de&append_to_response=trailers";
echo $url.PHP_EOL;
$tmdb = json_decode(file_get_contents($url), true);
......@@ -57,7 +57,7 @@ $tmdb = json_decode(file_get_contents($url), true);
//echo $tmdb;
var_dump($tmdb["movie_results"][0]["id"]);
echo PHP_EOL;
/*
$url2="https://api.themoviedb.org/3/movie/".$tmdb["movie_results"][0]["id"]."?api_key=".$tmdbKey."&language=de&append_to_response=trailers";
$tmdb2 = json_decode(file_get_contents($url2), true);
......
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