Commit 94c5f9be authored by Nico Schallehn's avatar Nico Schallehn

test

parent 1c173fe7
...@@ -37,6 +37,16 @@ function dirtoArray($dir, $root = ''){ ...@@ -37,6 +37,16 @@ function dirtoArray($dir, $root = ''){
dirtoArray($dir); dirtoArray($dir);
//var_dump($Notindexed); //var_dump($Notindexed);
foreach ($Notindexed as $value) { foreach ($Notindexed as $value) {
if(strpos($value[1], "(SD)")){
$resolution = "SD";
}
else if(strpos($value[1], "(720p)")){
$resolution = "720p";
}
else if(strpos($value[1], "(1080p)")){
$resolution = "1080p";
}
echo "SELECT * FROM Filme WHERE name = '".substr($value[1],0,strpos($value[1], "("))."' resolution = '".$resolution."'".PHP_EOL;
echo $value[0]." ".$value[1].PHP_EOL; //echo $value[0]." ".$value[1].PHP_EOL;
} }
\ 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