Commit 05982ab7 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 12577726
...@@ -119,6 +119,8 @@ class Media { ...@@ -119,6 +119,8 @@ class Media {
if(is_file($Pfad.$Filename)){ if(is_file($Pfad.$Filename)){
$array = array(); $array = array();
$FilenameOrg = $Filename; $FilenameOrg = $Filename;
echo $Pfad.$FilenameOrg.PHP_EOL;
$array["hdd"] = $this->HDDID; $array["hdd"] = $this->HDDID;
if(strpos($Filename, "(3D)")>0){ if(strpos($Filename, "(3D)")>0){
$Filename = str_replace("(3D)", "", $Filename); $Filename = str_replace("(3D)", "", $Filename);
...@@ -143,7 +145,7 @@ class Media { ...@@ -143,7 +145,7 @@ class Media {
echo $Pfad.$FilenameOrg.PHP_EOL;
// Werte aus IMdb Auslesen... // Werte aus IMdb Auslesen...
$imdb = new IMDB("http://www.imdb.com/title/tt".$array["imdbID"]."/"); $imdb = new IMDB("http://www.imdb.com/title/tt".$array["imdbID"]."/");
if ($imdb->isReady) { if ($imdb->isReady) {
...@@ -218,9 +220,10 @@ class Media { ...@@ -218,9 +220,10 @@ class Media {
foreach ($array as $key => $value) { foreach ($array as $key => $value) {
echo " ".$key." => '".$value."'".PHP_EOL; echo " ".$key." => '".$value."'".PHP_EOL;
} }
} }else{
return "Keine Datei!".PHP_EOL; return "Keine Datei!".PHP_EOL;
} }
}
private function getRunTime($laufzeit){ private function getRunTime($laufzeit){
$string = explode(" ", $laufzeit); $string = explode(" ", $laufzeit);
return ((trim(str_replace("h", "", $string[0]))*3600)+(trim(str_replace("m", "", $string[1])*60))); return ((trim(str_replace("h", "", $string[0]))*3600)+(trim(str_replace("m", "", $string[1])*60)));
......
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