Commit 19501f1a authored by Nico Schallehn's avatar Nico Schallehn

test

parent 844e8754
......@@ -170,9 +170,9 @@ class Media {
$xml = simplexml_load_string($xmlstring);
$json = json_encode($xml,JSON_PRETTY_PRINT);
//echo $json;
$array = json_decode($json,TRUE);
foreach ($array["File"]["track"] as $key => $value) {
echo " ".$key." ".$value["@attributes"]["type"].PHP_EOL;
$array2 = json_decode($json,TRUE);
foreach ($array2["File"]["track"] as $key => $value) {
//echo " ".$key." ".$value["@attributes"]["type"].PHP_EOL;
switch ($key) {
case "General":
$array["vcodec"] = str_replace("Matroska", "mkv", $value["Format"]);
......
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