Commit 23238be6 authored by Nico Schallehn's avatar Nico Schallehn

test

parent eec01ec3
...@@ -64,14 +64,16 @@ echo "Summery: ".$tmdb["tv_results"][0]["overview"].PHP_EOL; ...@@ -64,14 +64,16 @@ echo "Summery: ".$tmdb["tv_results"][0]["overview"].PHP_EOL;
$url2="https://api.themoviedb.org/3/tv/".$tmdb["tv_results"][0]["id"]."?api_key=".$tmdbKey."&language=de"; $url2="https://api.themoviedb.org/3/tv/".$tmdb["tv_results"][0]["id"]."?api_key=".$tmdbKey."&language=de";
$tmdb2 = json_decode(file_get_contents($url2), true); $tmdb2 = json_decode(file_get_contents($url2), true);
//var_dump($tmdb2["seasons"]); var_dump($tmdb2["seasons"]);
exit;
foreach ($tmdb2["seasons"] AS $Key => $Value){ foreach ($tmdb2["seasons"] AS $Key => $Value){
echo " Staffel ".($Key+1).":".PHP_EOL; echo " Staffel ".($Key+1).":".PHP_EOL;
$url3="https://api.themoviedb.org/3/tv/".$tmdb["tv_results"][0]["id"]."/season/".($Key+1)."?api_key=".$tmdbKey."&language=de"; $url3="https://api.themoviedb.org/3/tv/".$tmdb["tv_results"][0]["id"]."/season/".($Key+1)."?api_key=".$tmdbKey."&language=de";
//echo $url3.PHP_EOL; //echo $url3.PHP_EOL;
$tmdb3 = json_decode(file_get_contents($url3), true); $tmdb3 = json_decode(file_get_contents($url3), true);
foreach ($tmdb3["episodes"] as $key => $value) { foreach ($tmdb3["episodes"] as $key => $value) {
echo " Episode ".$key." Name: ".$Value["name"]; echo " Episode ".$value["episode_number"]." Name: ".$value["name"];
} }
//var_dump($tmdb3); //var_dump($tmdb3);
......
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