Commit 91b55a26 authored by Nico Schallehn's avatar Nico Schallehn

tst

parent 9f8185d3
......@@ -640,8 +640,7 @@ class Media {
$array = array();
if(is_file($Pfad.$Filename)){
echo "Datei: ".$Pfad." > ".$Filename.PHP_EOL;
echo stripos( $Pfad.$Filename,"(BD)");
exit;
if((stripos($Pfad.$Filename,"(TV)") >0)){
$array["source"] = "TV";
}
......@@ -655,6 +654,10 @@ class Media {
$array["source"] = "Web";
}
echo stripos( $Pfad.$Filename,"(BD)").$array["source"].PHP_EOL;
exit;
if(!(stripos( $Pfad,"(") == false)){
$array["imdbID"] = substr($Pfad,stripos( $Pfad,"(")+1,7);
}else{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