Commit 70ddd15d authored by Nico Schallehn's avatar Nico Schallehn

test

parent 663bcfdb
...@@ -126,15 +126,16 @@ class Media { ...@@ -126,15 +126,16 @@ class Media {
//echo $ParseFile; //echo $ParseFile;
$array = $this->parseMovie((($action == "einlesen")?$this->PfadzumEinlesen."/":$this->PfadzumAusgeben."Filme/").(strlen($value[0])>0?$value[0].'/':''), $value[1]); $array = $this->parseMovie((($action == "einlesen")?$this->PfadzumEinlesen."/":$this->PfadzumAusgeben."Filme/").(strlen($value[0])>0?$value[0].'/':''), $value[1]);
if($array == false){ if(($array == false)){
echo $this->Console->getColoredString(" ","black", "red").PHP_EOL; echo $this->Console->getColoredString(" ","black", "red").PHP_EOL;
$fehler = $this->Console->getColoredString("Fehler!","black", "red")." ".$this->PfadzumEinlesen.'/'.(strlen($value[0])>0?$value[0].'/':'').$value[1].PHP_EOL; $fehler = $this->Console->getColoredString("Fehler!","black", "red")." ".$this->PfadzumEinlesen.'/'.(strlen($value[0])>0?$value[0].'/':'').$value[1].PHP_EOL;
echo $fehler; echo $fehler;
$fehlerArr[] = $fehler; $fehlerArr[] = $fehler;
echo $this->Console->getColoredString(" ","black", "red").PHP_EOL; echo $this->Console->getColoredString(" ","black", "red").PHP_EOL;
}else if((file_exists("./phpTestout/".$array['imdbID'].".txt"))){
echo "Film wurde bereits verarbeitet!! Bitte Outputfile in 'phpTestout' löschen!".PHP_EOL;
}else{ }else{
//TODO Baustelle Start
$Pfad = (($action == "einlesen")?$this->PfadzumEinlesen."/":$this->PfadzumAusgeben."Filme/").(strlen($value[0])>0?$value[0].'/':''); $Pfad = (($action == "einlesen")?$this->PfadzumEinlesen."/":$this->PfadzumAusgeben."Filme/").(strlen($value[0])>0?$value[0].'/':'');
$PfadOrg = (strlen($value[0])>0?$value[0].'/':''); $PfadOrg = (strlen($value[0])>0?$value[0].'/':'');
$FilenameOrg = $value[1]; $FilenameOrg = $value[1];
...@@ -189,7 +190,6 @@ class Media { ...@@ -189,7 +190,6 @@ class Media {
} }
}*/ }*/
//TODO Baustelle Ende
} }
$end = time(); $end = time();
$Counter++; $Counter++;
......
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