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

test

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