Commit 8c4c531f authored by Nico Schallehn's avatar Nico Schallehn

test

parent 41f25b51
......@@ -297,8 +297,7 @@ class Media {
$File = $value[2].(strlen($value[0])>0?'/':'').$value[1];
$array = $this->parseEpisode($value[2].(strlen($value[0])>0?'/':''), $value[1],$action);
$array["HDD"] = $this->HDDID;
var_dump($array);
exit;
if(!isset($array["width"]) OR ($array["width"]<1280)){ $Resolution = "SD";}
else if($array["width"]<1920){ $Resolution = "720p";}
else { $Resolution = "1080p";}
......@@ -332,7 +331,7 @@ class Media {
$OldimdbID= $array["imdbID"];
}
if(!($Oldseason_nr == $array["season_nr"])){
$Query = "INSERT IGNORE Staffeln SET series_nr = '".$array["imdbID"]."', season_nr = '".$array["season_nr"]."', sound = '".$sound."', resolution = '".$Resolution."', season = '".intval($array["Season"])."', source = '".intval($array["source"])."';";
$Query = "INSERT IGNORE Staffeln SET series_nr = '".$array["imdbID"]."', season_nr = '".$array["season_nr"]."', sound = '".$sound."', resolution = '".$Resolution."', season = '".intval($array["Season"])."', source = '".$array["source"]."';";
$mysqli->query($Query);
if($mysqli->error != ""){ echo "Mysql-Fehler: ".$mysqli->error.PHP_EOL;}
file_put_contents("./phpTestout/insertSerien.sql", $Query.PHP_EOL, FILE_APPEND);
......
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