Commit a8757c15 authored by Nico Schallehn's avatar Nico Schallehn

test

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