Commit 79e85209 authored by Nico Schallehn's avatar Nico Schallehn

test

parent b778c038
...@@ -53,8 +53,8 @@ function dirtoArray($dir, $root = ''){ ...@@ -53,8 +53,8 @@ function dirtoArray($dir, $root = ''){
return $Notindexed; return $Notindexed;
} }
dirtoArray($dir); dirtoArray($dir);
var_dump($Notindexed); //var_dump($Notindexed);
/*$dreiD = false; $dreiD = false;
foreach ($Notindexed as $value) { foreach ($Notindexed as $value) {
if(strpos($value[1], "(SD)")){ if(strpos($value[1], "(SD)")){
$resolution = "SD"; $resolution = "SD";
...@@ -92,7 +92,7 @@ foreach ($Notindexed as $value) { ...@@ -92,7 +92,7 @@ foreach ($Notindexed as $value) {
//var_dump($resultArr); //var_dump($resultArr);
if(strlen($resultArr["imdbID"])>0){ 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."'"; $befehl = "mv '".$dir.$value[0]."/".$value[1]."' '".str_replace("3DHD-Filme", "Filme3D",$dir.$value[0])."/".utf8_encode($resultArr["name"])." (".$resultArr["resolution"].")".($dreiD?" (3D)":"")." (".$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);
......
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