* exclude root folders from series name detection

This commit is contained in:
Reinhard Pointner 2013-04-22 04:13:30 +00:00
parent f5d4c92487
commit 7c715af107
2 changed files with 2 additions and 1 deletions

View File

@ -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)));
} }
} }

View File

@ -1484,6 +1484,7 @@ TvD
TVFi TVFi
TvNORGE TvNORGE
TVP TVP
TvR
TVS TVS
TvTiME TvTiME
TVTUPA TVTUPA