Commit a50678c8 authored by Nico Schallehn's avatar Nico Schallehn

test cover folder anlegen

parent 1c851a89
...@@ -776,6 +776,15 @@ class Media { ...@@ -776,6 +776,15 @@ class Media {
if($mysqli->error != ""){ echo "Mysql-Fehler: ".$mysqli->error.PHP_EOL; return false;} if($mysqli->error != ""){ echo "Mysql-Fehler: ".$mysqli->error.PHP_EOL; return false;}
$counterNotFound = 0; $counterNotFound = 0;
//shell_exec("rm ".$this->config["CoverDir"]."Filme/full/*"); //shell_exec("rm ".$this->config["CoverDir"]."Filme/full/*");
// Ordnerstruktur
if(!is_dir($this->config["CoverDir"]."Filme")){
shell_exec("mkdir ".$this->config["CoverDir"]);
shell_exec("mkdir ".$this->config["CoverDir"]."Filme");
shell_exec("mkdir ".$this->config["CoverDir"]."Filme/full");
shell_exec("mkdir ".$this->config["CoverDir"]."Filme/high");
shell_exec("mkdir ".$this->config["CoverDir"]."Filme/low");
shell_exec("mkdir ".$this->config["CoverDir"]."Filme/background");
}
while ($Film = $result->fetch_assoc()){ while ($Film = $result->fetch_assoc()){
//echo $url.PHP_EOL; //echo $url.PHP_EOL;
...@@ -863,6 +872,16 @@ class Media { ...@@ -863,6 +872,16 @@ class Media {
//shell_exec("rm ".$this->config["CoverDir"]."Serien/full/*"); //shell_exec("rm ".$this->config["CoverDir"]."Serien/full/*");
//shell_exec("rm ".$this->config["CoverDir"]."Staffeln/full/*"); //shell_exec("rm ".$this->config["CoverDir"]."Staffeln/full/*");
if(!is_dir($this->config["CoverDir"]."Serien")){
shell_exec("mkdir ".$this->config["CoverDir"]);
shell_exec("mkdir ".$this->config["CoverDir"]."Serien");
shell_exec("mkdir ".$this->config["CoverDir"]."Serien/full");
shell_exec("mkdir ".$this->config["CoverDir"]."Serien/low");
shell_exec("mkdir ".$this->config["CoverDir"]."Staffeln");
shell_exec("mkdir ".$this->config["CoverDir"]."Staffeln/full");
shell_exec("mkdir ".$this->config["CoverDir"]."Staffeln/high");
shell_exec("mkdir ".$this->config["CoverDir"]."Staffeln/low");
}
while ($Film = $result->fetch_assoc()){ while ($Film = $result->fetch_assoc()){
if(!file_exists($this->config["CoverDir"]."Serien/full/".$Film["series_nr"].".jpg")){ if(!file_exists($this->config["CoverDir"]."Serien/full/".$Film["series_nr"].".jpg")){
echo "Lade Cover (".$Film["series_nr"].") von Markus ...."; echo "Lade Cover (".$Film["series_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