Commit ad82876a authored by Nico Schallehn's avatar Nico Schallehn

test

parent 29676cd8
......@@ -161,7 +161,7 @@ class Media {
}
$array["imdbID"] = substr($Filename,strripos( $Filename,"(")+1,7);
$array["name"] = trim(substr($Filename, 0, strripos( $Filename,"(")));
/*$array["Endung"] = trim(substr($Filename,strripos( $Filename,".")+1));*/
$Endung = trim(substr($Filename,strripos( $Filename,".")+1));
// Werte aus IMdb Auslesen...
$imdb = new IMDB("http://www.imdb.com/title/tt".$array["imdbID"]."/");
if ($imdb->isReady) {
......@@ -238,7 +238,7 @@ class Media {
echo "Kopiere datei...";
$copy = 'mv "'.
$Pfad.$FilenameOrg.'" "'.
$this->PfadzumAusgeben.($array["3d"]==""?$this->config["HDD"][$this->HDDID]["Filme"]:$this->config["HDD"][$this->HDDID]["3D"])." /".utf8_encode($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"])." /".utf8_encode($array["name"])." (".$array["resolution"].")".($array["3d"] != ""?" (3D)":"")." (".$array["imdbID"].").".$Endung.'"';
file_put_contents("./phpTestout/".$array['imdbID'].".txt", $copy.PHP_EOL, FILE_APPEND);
echo $copy."done!".PHP_EOL;
return true;
......
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