Commit c3fe70e2 authored by Nico Schallehn's avatar Nico Schallehn

einige kleine änderungen

parent d3f70c29
...@@ -154,18 +154,22 @@ class Media { ...@@ -154,18 +154,22 @@ class Media {
echo "Datei liegt schon am ausgabe Ort!".PHP_EOL; echo "Datei liegt schon am ausgabe Ort!".PHP_EOL;
} }
else{ else{
if(!is_dir($this->PfadzumAusgeben.($array["3d"]==""?$this->config["HDD"][$this->HDDID]["Filme"]:$this->config["HDD"][$this->HDDID]["3D"]).$array["collection"].'/')){
shell_exec("mkdir '".$this->PfadzumAusgeben.($array["3d"]==""?$this->config["HDD"][$this->HDDID]["Filme"]:$this->config["HDD"][$this->HDDID]["3D"]).$array["collection"].'/'."'");
}
if(isset($array["collection"])){ if(isset($array["collection"])){
echo "Collection Ausgabe in eigenen Collection Ordner: ".$array["collection"].PHP_EOL; echo "Collection Ausgabe in eigenen Collection Ordner: ".$array["collection"].PHP_EOL;
//exit; $Pfadnew = $array["collection"].'/';
}
else{
$Pfadnew = '';
}
if(!is_dir($this->PfadzumAusgeben.($array["3d"]==""?$this->config["HDD"][$this->HDDID]["Filme"]:$this->config["HDD"][$this->HDDID]["3D"]).$Pfadnew)){
shell_exec("mkdir '".$this->PfadzumAusgeben.($array["3d"]==""?$this->config["HDD"][$this->HDDID]["Filme"]:$this->config["HDD"][$this->HDDID]["3D"]).$Pfadnew."'");
} }
echo "Verschiebe Datei..."; echo "Verschiebe Datei...";
$copy = 'mv "'. $copy = 'mv "'.
$Pfad.$FilenameOrg.'" "'. $Pfad.$FilenameOrg.'" "'.
$this->PfadzumAusgeben.($array["3d"]==""?$this->config["HDD"][$this->HDDID]["Filme"]:$this->config["HDD"][$this->HDDID]["3D"]).$array["collection"].'/'.$array["name"]." (".$array["resolution"].")".($array["3d"] != ""?" (3D)":"")." (".$array["imdbID"].").".$Endung.'"'; $this->PfadzumAusgeben.($array["3d"]==""?$this->config["HDD"][$this->HDDID]["Filme"]:$this->config["HDD"][$this->HDDID]["3D"]).$Pfadnew.$array["name"]." (".$array["resolution"].")".($array["3d"] != ""?" (3D)":"")." (".$array["imdbID"].").".$Endung.'"';
file_put_contents("./phpTestout/imdbID/".$array['imdbID'].".txt", $copy.PHP_EOL, FILE_APPEND); file_put_contents("./phpTestout/imdbID/".$array['imdbID'].".txt", $copy.PHP_EOL, FILE_APPEND);
shell_exec($copy); shell_exec($copy);
echo "done!".PHP_EOL; 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