Commit 58ca1fef authored by Nico Schallehn's avatar Nico Schallehn

test

parent a8757c15
...@@ -75,8 +75,8 @@ foreach ($tmdb2["seasons"] AS $Key => $Value){ ...@@ -75,8 +75,8 @@ foreach ($tmdb2["seasons"] AS $Key => $Value){
$url3="https://api.themoviedb.org/3/tv/".$tmdb["tv_results"][0]["id"]."/season/".$Value["season_number"]."?api_key=".$tmdbKey."&language=de"; $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; //echo $url3.PHP_EOL;
$tmdb3 = json_decode(file_get_contents($url3), true); $tmdb3 = json_decode(file_get_contents($url3), true);
echo " Overview:".substr($tmdb3["overview"], 0,100);
var_dump($tmdb3); //var_dump($tmdb3);
foreach ($tmdb3["episodes"] as $key => $value) { 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;
......
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