Commit 1c1117c2 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 8015c0a6
......@@ -173,7 +173,7 @@ class Media {
$counter= 0;
while ($Film = $result->fetch_assoc()){
$newData = array();
echo "Hole Daten von imdb... ";
echo " Hole Daten von imdb... ";
// Werte aus IMdb Auslesen...
$imdb = new IMDB("http://www.imdb.com/title/tt".$Film["imdbID"]."/");
if ($imdb->isReady) {
......@@ -191,7 +191,7 @@ class Media {
$fskbool= false;
if(!(strpos( $fsktemp,"Germany") === false)){
$fsk = trim(substr($fsktemp,strpos( $fsktemp,"Germany")+8,3));
$fsk = trim(substr($fsktemp,strpos( $fsktemp,"Germany")+8,2));
if(in_array($fsk, array(0, 6, 12,16,18))){
$fskbool = true;
$newData["fsk"] = $fsk;
......@@ -200,7 +200,7 @@ class Media {
if(!$fskbool){
$fsk = "";
//var_dump($fsktemp);
echo "Hole Daten von altersfreigaben.de... ";
echo " Hole Daten von altersfreigaben.de... ";
$fsk2 = file_get_contents("https://altersfreigaben.de/api2/s/tt".$Film["imdbID"]."/de");
echo $fsk2;
echo " done!".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