Commit 780ff8ea authored by Nico Schallehn's avatar Nico Schallehn

lastUpdate hinzugefügt

parent 64ddd722
......@@ -525,6 +525,7 @@ class Media {
$changed = "";
$first = true;
$update = "";
$DataArr["lastUpdate"] = date("Y-m-d");
foreach ($DataArr AS $key=> $value){
if(!in_array($key, array("Schauspieler", "Genre", "3d")) AND !in_array($value,array("n/A", ""))){
if(!(md5(trim($Film[$key])) == md5(trim($DataArr[$key])))) {
......@@ -554,6 +555,7 @@ class Media {
echo $Ausgabe;
file_put_contents("./phpTestout/".$DataArr['imdbID'].".txt", $Ausgabe.PHP_EOL.$SQL.PHP_EOL, FILE_APPEND);
file_put_contents("./phpTestout/update_CheckOnly.txt", $Ausgabe.PHP_EOL.$SQL.PHP_EOL, FILE_APPEND);
file_put_contents("./phpTestout/update.sql", $SQL.PHP_EOL, FILE_APPEND);
}
echo PHP_EOL;
return true;
......
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