* make series detection of aware of structure root folders and ignore them
This commit is contained in:
parent
2c30728e61
commit
7a2b792e08
|
@ -311,7 +311,7 @@ public class MediaDetection {
|
||||||
Set<String> folders = new LinkedHashSet<String>();
|
Set<String> folders = new LinkedHashSet<String>();
|
||||||
Set<String> filenames = new LinkedHashSet<String>();
|
Set<String> filenames = new LinkedHashSet<String>();
|
||||||
for (File f : files) {
|
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)));
|
(i == 0 ? filenames : folders).add(normalizeBrackets(getName(f)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,6 +89,7 @@
|
||||||
^Storage$
|
^Storage$
|
||||||
^System$
|
^System$
|
||||||
^tank$
|
^tank$
|
||||||
|
^Telechargements$
|
||||||
^temp$
|
^temp$
|
||||||
^temporary$
|
^temporary$
|
||||||
^Test$
|
^Test$
|
||||||
|
|
Loading…
Reference in New Issue