Commit a93ddbd6 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 7c6bc803
...@@ -350,7 +350,7 @@ class Media { ...@@ -350,7 +350,7 @@ class Media {
$befehl = 'mediainfo --Output=XML "'.$Datei.'" > /tmp/'.$array["imdbID"].(isset($array["Season"])?"S".$array["Season"]."E".$array["Episode"]:(!$array["3d"]==""?"3d":"")).'.xml'; $befehl = 'mediainfo --Output=XML "'.$Datei.'" > /tmp/'.$array["imdbID"].(isset($array["Season"])?"S".$array["Season"]."E".$array["Episode"]:(!$array["3d"]==""?"3d":"")).'.xml';
exec($befehl); exec($befehl);
} }
$xmlstring = file_get_contents('/tmp/'.$array["imdbID"].(isset($array["Season"])?"S".$array["Season"]."E".$array["Episode"]:(!$array["3d"]==""?"3d":"")).'.xml'); //TODO Testen ob 3d Geht.... $xmlstring = file_get_contents('/tmp/'.$array["imdbID"].(isset($array["Season"])?"S".$array["Season"]."E".$array["Episode"]:(!$array["3d"]==""?"3d":"")).'.xml'); //TODO Testen ob 3d Geht, bzw. anpassen wenn Serien in 3 Vorhanden wären.......
$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