Commit 4cff8a8a authored by Nico Schallehn's avatar Nico Schallehn

test

parent 8edc1e79
......@@ -143,11 +143,7 @@ class Media {
//var_dump($imdb->getAll());
$array["year"] = $imdb->getYear();
$array["size"] = filesize($Pfad.$FilenameOrg);
$a = fopen($Pfad.$FilenameOrg, 'r');
fseek($a, 0, SEEK_END);
$filesize = ftell($a);
fclose($a);
$array["size2"] = $filesize;
$array["size2"] = getfileSitze($Pfad.$FilenameOrg);
$array["rating"] = $imdb->getRating();
} else{
......@@ -160,6 +156,10 @@ class Media {
//var_dump($array);
//return
}
private function getfileSitze($file){
return trim(explode(" ", exec('du -s "'.$file.'"'))[0]);
}
private function dirtoArray($dir, $root = ''){
$Arr = scandir($dir);
......
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