Commit 535b3ebf authored by Nico Schallehn's avatar Nico Schallehn

test

parent c573eaf5
...@@ -32,6 +32,7 @@ class Media { ...@@ -32,6 +32,7 @@ class Media {
"ApiKeys" => array( "Fanart_Key" =>"9902c9197f457401ff7a7eba839213ba", "ApiKeys" => array( "Fanart_Key" =>"9902c9197f457401ff7a7eba839213ba",
"Tmdb_Key" =>"b1ddcc7d16281ce09f692896f882ba9d"), "Tmdb_Key" =>"b1ddcc7d16281ce09f692896f882ba9d"),
"FolderIgnor" => array('.', '..', '.@__thumb', '@Recycle'), "FolderIgnor" => array('.', '..', '.@__thumb', '@Recycle'),
"FileEndungIgnor" => array('jpg', 'nfo'),
"HDD" => array(1 => array("HDDdir" => "/media/QNAP/", "HDD" => array(1 => array("HDDdir" => "/media/QNAP/",
"Filme" => "Filme/", "Filme" => "Filme/",
"3D" => "Filme3D/", "3D" => "Filme3D/",
...@@ -721,7 +722,10 @@ class Media { ...@@ -721,7 +722,10 @@ class Media {
} }
else{ else{
//TODO Dateiendungen ignorieren einbauen!! z.b. jpg und nfo //TODO Dateiendungen ignorieren einbauen!! z.b. jpg und nfo
$this->FolderArray[] = array($root, $Value); $Endung = trim(substr($Value,strripos( $FilenameOrg,".")+1));
if(!in_array($Endung, $this->config["FileEndungIgnor"]) ){
$this->FolderArray[] = array($root, $Value);
}
} }
} }
return $this->FolderArray; return $this->FolderArray;
......
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