* make series detection of aware of structure root folders and ignore them

This commit is contained in:
Reinhard Pointner 2013-12-06 06:01:58 +00:00
parent 2c30728e61
commit 7a2b792e08
2 changed files with 2 additions and 1 deletions

View File

@ -311,7 +311,7 @@ public class MediaDetection {
Set<String> folders = new LinkedHashSet<String>();
Set<String> filenames = new LinkedHashSet<String>();
for (File f : files) {
for (int i = 0; i < 3 && f != null && f.getParentFile() != null; i++, f = f.getParentFile()) {
for (int i = 0; i < 3 && f != null && !isStructureRoot(f); i++, f = f.getParentFile()) {
(i == 0 ? filenames : folders).add(normalizeBrackets(getName(f)));
}
}

View File

@ -89,6 +89,7 @@
^Storage$
^System$
^tank$
^Telechargements$
^temp$
^temporary$
^Test$