* exclude root folders from series name detection
This commit is contained in:
parent
f5d4c92487
commit
7c715af107
|
@ -288,7 +288,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; i++, f = f.getParentFile()) {
|
for (int i = 0; i < 3 && f != null && f.getParentFile() != null; i++, f = f.getParentFile()) {
|
||||||
(i == 0 ? filenames : folders).add(normalizeBrackets(getName(f)));
|
(i == 0 ? filenames : folders).add(normalizeBrackets(getName(f)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1484,6 +1484,7 @@ TvD
|
||||||
TVFi
|
TVFi
|
||||||
TvNORGE
|
TvNORGE
|
||||||
TVP
|
TVP
|
||||||
|
TvR
|
||||||
TVS
|
TVS
|
||||||
TvTiME
|
TvTiME
|
||||||
TVTUPA
|
TVTUPA
|
||||||
|
|
Loading…
Reference in New Issue