Commit e4a1e516 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 28bec8a4
......@@ -173,7 +173,7 @@ class Media {
$array["Genre"] = $imdb->getGenre();
$array["Schauspieler"] = $imdb->getCastAsOwn(0, false);
} else{
echo "nichts gefunden!".PHP_EOL;
echo $this->Console->error("imdbID nicht bei imdb gefunden!").PHP_EOL;
return false;
}
// werte von MediaInfo holen...
......@@ -202,6 +202,7 @@ class Media {
$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;
}
}
......@@ -210,6 +211,7 @@ class Media {
$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;
}
}
......@@ -227,6 +229,7 @@ class Media {
echo " ".$key." => '".$value."'".PHP_EOL;
}*/
}else{
echo $this->Console->error("Datei Existiert nicht!").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