Commit be463598 authored by Nico Schallehn's avatar Nico Schallehn

test

parent e4a1e516
......@@ -201,18 +201,24 @@ class Media {
$array["acodecger"] = $value["Format"];
$array["abitrateger"] = round(trim(str_replace(" ", "",str_replace("Kbps", "",$value["Bit_rate"]))),0);
$array["channelsger"] = str_replace(" channels", "",$value["Channel_s_"]);
if(!is_numeric(str_replace(" channels", "",$value["Channel_s_"]))){
echo $this->Console->error("channelsger ist nicht Numerisch!").PHP_EOL;
return false;
if(!is_numeric($array["channelsger"])){
$array["channelsger"] = substr($array["channelsger"],strripos( $array["channelsger"],"/")+1);
if(!is_numeric($array["channelsger"])){
echo $this->Console->error("channelsger ist nicht Numerisch!").PHP_EOL;
return false;
}
}
}
else if(($value["Language"] == "Englisch") OR ($value["Language"] == "English")){
$array["acodeceng"] = $value["Format"];
$array["abitrateeng"] = round(trim(str_replace(" ", "",str_replace("Kbps", "",$value["Bit_rate"]))),0);
$array["channelseng"] = str_replace(" channels", "",$value["Channel_s_"]);
if(!is_numeric(str_replace(" channels", "",$value["Channel_s_"]))){
echo $this->Console->error("channelseng ist nicht Numerisch!").PHP_EOL;
return false;
if(!is_numeric($array["channelseng"])){
$array["channelseng"] = substr($array["channelseng"],strripos( $array["channelseng"],"/")+1);
if(!is_numeric($array["channelseng"])){
echo $this->Console->error("channelseng ist nicht Numerisch!").PHP_EOL;
return false;
}
}
}
}
......
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