Commit 8885eb66 authored by Nico Schallehn's avatar Nico Schallehn

test

parent af1f8df9
...@@ -223,6 +223,20 @@ class Media { ...@@ -223,6 +223,20 @@ class Media {
$counterNotFound++; $counterNotFound++;
} }
} }
echo " Hole Daten von themoviedb.org... ";
$tmdbKey = "b1ddcc7d16281ce09f692896f882ba9d";
$tmdb = json_decode(file_get_contents("https://api.themoviedb.org/3/find/tt".$Film["imdbID"]."?external_source=imdb_id&api_key=".$tmdbKey."&language=de"), true);
if(strlen($tmdb["movie_results"]["overview"])>0){
echo " done!".PHP_EOL;
$newData["summary"]=$tmdb["movie_results"]["overview"];
}else{
echo " fail!".PHP_EOL;
}
$update =""; $update ="";
$first = true; $first = true;
foreach ($newData AS $key=> $value){ foreach ($newData AS $key=> $value){
......
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