Commit b85cedf7 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 670df9f3
......@@ -47,8 +47,8 @@ function dirtoArray($dir, $root = ''){
return $Notindexed;
}
dirtoArray($dir);
//var_dump($Notindexed);
$dreiD = false;
var_dump($Notindexed);
/*$dreiD = false;
foreach ($Notindexed as $value) {
if(strpos($value[1], "(SD)")){
$resolution = "SD";
......@@ -87,10 +87,10 @@ foreach ($Notindexed as $value) {
//var_dump($resultArr);
if(strlen($resultArr["imdbID"])>0){
$befehl = "mv '".$dir.$value[0]."/".$value[1]."' '".str_replace("3DHD-Filme", "Filme3D",$dir.$value[0])."/".utf8_encode($resultArr["name"]).($dreiD?" (3D)":"")." (".$resultArr["resolution"].") (".$resultArr["imdbID"].")".$endung."'";
/*$comando = str_replace(" ", "\ ", $comando);
$comando = str_replace("(", "\(", $comando);
$comando = str_replace(") ", "\)", $comando);
*///
//$comando = str_replace(" ", "\ ", $comando);
//$comando = str_replace("(", "\(", $comando);
//$comando = str_replace(") ", "\)", $comando);
//
//echo exec("mkdir '".str_replace("3DHD-Filme", "Filme3D",$dir.$value[0])."/'").PHP_EOL;
echo $befehl.PHP_EOL;
......@@ -101,4 +101,4 @@ foreach ($Notindexed as $value) {
}
//echo $value[0]." ".$value[1].PHP_EOL;
}
\ No newline at end of file
}// */
\ No newline at end of file
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