Commit eecce7f0 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 58bdcb92
......@@ -362,6 +362,7 @@ class Media {
if($mysqli->error != ""){ echo "Mysql-Fehler: ".$mysqli->error.PHP_EOL; return false;}
$counterNotFound = 0;
shell_exec("rm ".$this->config["CoverDir"]."Serien/full/*");
shell_exec("rm ".$this->config["CoverDir"]."Staffeln/full/*");
while ($Film = $result->fetch_assoc()){
if(!file_exists($this->config["CoverDir"]."Serien/full/".$Film["series_nr"].".jpg")){
echo "Lade Cover (".$Film["series_nr"].") von Markus ....";
......@@ -383,7 +384,7 @@ class Media {
$result2 = $mysqli->query($Query);
if($mysqli->error != ""){ echo "Mysql-Fehler: ".$mysqli->error.PHP_EOL; return false;}
$counterNotFound = 0;
shell_exec("rm ".$this->config["CoverDir"]."Staffeln/full/*");
while ($Film2 = $result2->fetch_assoc()){
if(!file_exists($this->config["CoverDir"]."Staffeln/full/".$Film2["season_nr"].".jpg")){
echo " Lade Cover (".$Film2["season_nr"].") von Markus ....";
......
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