Commit 204810c1 authored by Nico Schallehn's avatar Nico Schallehn

test

parent fbcbb811
......@@ -172,8 +172,8 @@ class Media {
//echo $json;
$array2 = json_decode($json,TRUE);
foreach ($array2["File"]["track"] as $key => $value) {
echo " ".$key." ".$value["@attributes"]["type"].PHP_EOL;
switch ($key) {
//echo " ".$key." ".$value["@attributes"]["type"].PHP_EOL;
switch ($value["@attributes"]["type"]) {
case "General":
$array["vcodec"] = str_replace("Matroska", "mkv", $value["Format"]);
$array["duration"] = $this->getRunTime($value["Duration"]);
......
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