Commit b0801651 authored by Nico Schallehn's avatar Nico Schallehn

test

parent a50cbc94
......@@ -131,6 +131,8 @@ class Media {
//TODO Baustelle Start
$Pfad = $this->PfadzumEinlesen.'/'.(strlen($value[0])>0?$value[0].'/':'');
$FilenameOrg = $value[1];
$Endung = trim(substr($FilenameOrg,strripos( $FilenameOrg,".")+1));
if( $this->addMovie($array, (strlen($value[0])>0?$value[0].'/':'').$value[1], false)){ //TODO auf true für md5!!!
if(($Pfad.$FilenameOrg) == ($this->PfadzumAusgeben.($array["3d"]==""?$this->config["HDD"][$this->HDDID]["Filme"]:$this->config["HDD"][$this->HDDID]["3D"]).$PfadOrg.$array["name"]." (".$array["resolution"].")".($array["3d"] != ""?" (3D)":"")." (".$array["imdbID"].").".$Endung)){
echo "Datei liegt schon am ausgabe Ort!".PHP_EOL;
......@@ -383,6 +385,7 @@ class Media {
return false;
}
$array["name"] = trim(substr($Filename, 0, strripos( $Filename,"(")));
//TODO wird hier nicht gebraucht?
$Endung = trim(substr($Filename,strripos( $Filename,".")+1));
echo "Hole Daten von imdb... ";
......
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