Commit 89a56fc2 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 3cb7a5c5
......@@ -161,7 +161,9 @@ class Media {
$Filename = str_replace("(SD)", "", $Filename);
$array["resolution"] = "SD";
}
$array["imdbID"] = substr($Filename,strripos( $Filename,"(")+1,7);
if(!(strripos( $Filename,"(") == false)){
$array["imdbID"] = substr($Filename,strripos( $Filename,"(")+1,7);
}
echo strlen($array["imdbID"])." ".$array["imdbID"].PHP_EOL;
if(strlen($array["imdbID"])<=2){
file_put_contents("./phpTestout/default.txt", "Keine imdbID in Dateinamen: ".$Pfad.$Filename." gefunden!".PHP_EOL, FILE_APPEND);
......
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