Commit 34c74c8f authored by Nico Schallehn's avatar Nico Schallehn

test

parent dd37f710
...@@ -84,7 +84,7 @@ foreach ($Notindexed as $value) { ...@@ -84,7 +84,7 @@ foreach ($Notindexed as $value) {
$resultArr = $result->fetch_array(); $resultArr = $result->fetch_array();
//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("HD-", "",$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);
...@@ -92,7 +92,10 @@ foreach ($Notindexed as $value) { ...@@ -92,7 +92,10 @@ foreach ($Notindexed as $value) {
*/// *///
//echo exec("mkdir '".str_replace("HD-", "",$dir.$value[0])."/'").PHP_EOL; //echo exec("mkdir '".str_replace("HD-", "",$dir.$value[0])."/'").PHP_EOL;
echo $befehl.PHP_EOL; echo $befehl.PHP_EOL;
//echo exec($befehl); //echo exec($befehl);
}else{
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