Commit 0884f9d7 authored by Nico Schallehn's avatar Nico Schallehn

Qualität eingbaut

parent bc7db096
...@@ -126,7 +126,20 @@ class Media { ...@@ -126,7 +126,20 @@ class Media {
$array["3d"] = true; $array["3d"] = true;
} }
else{ $array["3d"] = false; } else{ $array["3d"] = false; }
$array["Endung"] = substr($Filename,strripos( $Filename,".")); if(strpos($Filename, "(720p)")>0){
$Filename = str_replace("(720p)", "", $Filename);
$array["Quality"] = "720p";
}
else if(strpos($Filename, "(1080p)")>0){
$Filename = str_replace("(1080p)", "", $Filename);
$array["Quality"] = "1080p";
}
else if(strpos($Filename, "(SD)")>0){
$Filename = str_replace("(SD)", "", $Filename);
$array["Quality"] = "SD";
}
$array["Endung"] = substr($Filename,strripos( $Filename,".")+1);
strripos( $Filename,"."); strripos( $Filename,".");
var_dump($array); var_dump($array);
return $Pfad." > ".$Filename; return $Pfad." > ".$Filename;
......
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