Commit 943bf248 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 55f610d5
...@@ -1138,8 +1138,13 @@ class Media { ...@@ -1138,8 +1138,13 @@ class Media {
} }
} }
private function getRunTime($laufzeit){ private function getRunTime($laufzeit){
if(strpos($laufzeit, "h") == false){
$laufzeit = "0h "+$laufzeit;
}
$laufzeit = str_replace("mn", "m", $laufzeit);
$laufzeit = str_replace("s", "", $laufzeit);
$string = explode(" ", $laufzeit); $string = explode(" ", $laufzeit);
return ((trim(str_replace("h", "", $string[0]))*3600)+(trim(str_replace("m", "", $string[1])*60))); return ((trim(str_replace("h", "", $string[0]))*3600)+(trim(str_replace("m", "", $string[1])*60))); //TODO sekunden hinzufügen
} }
private function getfileSize($file){ private function getfileSize($file){
return trim(explode("/", exec('du -b "'.$file.'"'))[0]); return trim(explode("/", exec('du -b "'.$file.'"'))[0]);
......
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