account for {n}/{s00e00} folder structure (e.g. Firefly/S01E01 - Pilot)

This commit is contained in:
Reinhard Pointner 2016-10-03 13:29:01 +08:00
parent 9c1b19d43f
commit 892e56a246
1 changed files with 5 additions and 0 deletions

View File

@ -448,6 +448,11 @@ public class MediaDetection {
queries.add(sn); queries.add(sn);
break; break;
} }
// account for {n}/{s00e00} folder structure (e.g. Firefly/S01E01 - Pilot)
if (sn == null && path.isDirectory()) {
queries.addAll(stripBlacklistedTerms(stripReleaseInfo(singleton(path.getName()), true)));
}
} }
} }
} }