Commit 1b8ece2a authored by Nico Schallehn's avatar Nico Schallehn

mediainfo unterscheidet jetzt nach 3d oder nicht

parent f60a5396
...@@ -398,11 +398,11 @@ class Media { ...@@ -398,11 +398,11 @@ class Media {
if(($minimal =="checkmd5") OR ($minimal =="einlesen")){ if(($minimal =="checkmd5") OR ($minimal =="einlesen")){
// werte von MediaInfo holen... // werte von MediaInfo holen...
echo " Hole Daten von mediainfo... "; echo " Hole Daten von mediainfo... ";
if(!file_exists('/tmp/'.$array["imdbID"].'.xml')){ if(!file_exists('/tmp/'.$array["imdbID"].$array["3d"].'.xml')){
$befehl = 'mediainfo --Output=XML "'.$Pfad.$FilenameOrg.'" > /tmp/'.$array["imdbID"].'.xml'; $befehl = 'mediainfo --Output=XML "'.$Pfad.$FilenameOrg.'" > /tmp/'.$array["imdbID"].$array["3d"].'.xml';
exec($befehl); exec($befehl);
} }
$xmlstring = file_get_contents('/tmp/'.$array["imdbID"].'.xml'); $xmlstring = file_get_contents('/tmp/'.$array["imdbID"].(!$array["3d"]==""?"3d":"").'.xml'); //TODO Testen ob 3d Geht....
$xml = simplexml_load_string($xmlstring); $xml = simplexml_load_string($xmlstring);
$json = json_encode($xml,JSON_PRETTY_PRINT); $json = json_encode($xml,JSON_PRETTY_PRINT);
$array2 = json_decode($json,TRUE); $array2 = json_decode($json,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