Commit e4a1e516 authored by Nico Schallehn's avatar Nico Schallehn

test

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