Commit 676bc25e authored by Nico Schallehn's avatar Nico Schallehn

test

parent d438a8b3
......@@ -164,6 +164,8 @@ class Media {
$array["imdbID"] = substr($Filename,strripos( $Filename,"(")+1,7);
$array["name"] = trim(substr($Filename, 0, strripos( $Filename,"(")));
$Endung = trim(substr($Filename,strripos( $Filename,".")+1));
echo "Hole Daten von imdb... ";
// Werte aus IMdb Auslesen...
$imdb = new IMDB("http://www.imdb.com/title/tt".$array["imdbID"]."/");
if ($imdb->isReady) {
......@@ -179,7 +181,9 @@ class Media {
echo $this->Console->error("imdbID nicht bei imdb gefunden!").PHP_EOL;
return false;
}
echo " done!".PHP_EOL;
// werte von MediaInfo holen...
echo "Hole Daten von mediainfo... ";
$befehl = 'mediainfo --Output=XML "'.$Pfad.$FilenameOrg.'" > /tmp/'.$array["imdbID"].'.xml';
exec($befehl);
$xmlstring = file_get_contents('/tmp/'.$array["imdbID"].'.xml');
......@@ -229,6 +233,7 @@ class Media {
break;
}
}
echo " done!".PHP_EOL;
if( $this->addMovie($array, $Pfad.$FilenameOrg)){
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;
......
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