Commit fcf3f0d8 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 393f1e51
...@@ -24,7 +24,7 @@ $Notindexed; ...@@ -24,7 +24,7 @@ $Notindexed;
function dirtoArray($dir, $root = ''){ function dirtoArray($dir, $root = ''){
$Arr = scandir($dir); $Arr = scandir($dir);
global $Notindexed; global $Notindexed;
$FolderIgnor = array('.@__thumb', '@Recycle', 'HD-Serien', 'Die Olsenbande', 'Serien', '3DHD-Filme', 'FilmeALT', 'Filme'); $FolderIgnor = array('.@__thumb', '@Recycle', 'HD-Serien', 'Die Olsenbande', 'Serien', 'FilmeALT', 'Filme');
unset($Arr[array_search('.', $Arr)]); unset($Arr[array_search('.', $Arr)]);
unset($Arr[array_search('..', $Arr)]); unset($Arr[array_search('..', $Arr)]);
unset($Arr[array_search('.@__thumb', $Arr)]); unset($Arr[array_search('.@__thumb', $Arr)]);
...@@ -85,7 +85,7 @@ foreach ($Notindexed as $value) { ...@@ -85,7 +85,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("HD-", "",$dir.$value[0])."/".utf8_encode($resultArr["name"])." (".$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"].") (".$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);
...@@ -95,7 +95,7 @@ foreach ($Notindexed as $value) { ...@@ -95,7 +95,7 @@ foreach ($Notindexed as $value) {
//echo exec($befehl); //echo exec($befehl);
}else{ }else{
echo "Keine Infos zu ".$dir.$value[0]."/".$value[1]." gefunden!".PHP_EOL; //echo "Keine Infos zu ".$dir.$value[0]."/".$value[1]." gefunden!".PHP_EOL;
} }
} }
......
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