Commit 73cb8066 authored by Nico Schallehn's avatar Nico Schallehn

test

parent ab872935
...@@ -159,9 +159,9 @@ class Media { ...@@ -159,9 +159,9 @@ class Media {
$befehl = 'mediainfo --Output=XML "'.$Pfad.$FilenameOrg.'" > /tmp/'.$array["imdbID"].'.xml'; $befehl = 'mediainfo --Output=XML "'.$Pfad.$FilenameOrg.'" > /tmp/'.$array["imdbID"].'.xml';
exec($befehl); exec($befehl);
$xmlstring = file_get_contents('/tmp/'.$array["imdbID"].'.xml'); $xmlstring = file_get_contents('/tmp/'.$array["imdbID"].'.xml');
$array2 = 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);
foreach ($array2["File"]["track"] as $key => $value) { foreach ($array2["File"]["track"] as $key => $value) {
//echo " ".$key." ".$value["@attributes"]["type"].PHP_EOL; //echo " ".$key." ".$value["@attributes"]["type"].PHP_EOL;
switch ($value["@attributes"]["type"]) { switch ($value["@attributes"]["type"]) {
......
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