mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
* 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> filenames = new LinkedHashSet<String>();
|
||||
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)));
|
||||
}
|
||||
}
|
||||
|
@ -1484,6 +1484,7 @@ TvD
|
||||
TVFi
|
||||
TvNORGE
|
||||
TVP
|
||||
TvR
|
||||
TVS
|
||||
TvTiME
|
||||
TVTUPA
|
||||
|
Loading…
Reference in New Issue
Block a user