* cover more special cases with series name detection

* better respect query-blacklist by applying it before removing any tokens using other patterns
This commit is contained in:
Reinhard Pointner 2012-11-15 13:48:28 +00:00
parent 8f1b21a02b
commit e817ca4689
3 changed files with 4 additions and 2 deletions

View File

@ -283,7 +283,8 @@ public class MediaDetection {
// check all filenames if necessary
if (matches.isEmpty()) {
matches = matchSeriesByName(stripReleaseInfo(filenames, true), 0);
matches.addAll(matchSeriesByName(filenames, 0));
matches.addAll(matchSeriesByName(stripReleaseInfo(filenames, false), 0));
}
// use lenient sub sequence matching only as fallback

View File

@ -129,7 +129,7 @@ public class ReleaseInfo {
Pattern queryBlacklist = getBlacklistPattern();
stopwords = new Pattern[] { languageTag, videoSource, videoFormat, resolution, languageSuffix };
blacklist = new Pattern[] { clutterBracket, releaseGroup, languageTag, videoSource, videoFormat, resolution, languageSuffix, queryBlacklist };
blacklist = new Pattern[] { queryBlacklist, languageTag, clutterBracket, releaseGroup, videoSource, videoFormat, resolution, languageSuffix };
// cache compiled patterns for common usage
this.stopwords.put(strict, stopwords);

View File

@ -73,6 +73,7 @@ Director's.Cut
Directors.Cut
Discovery.Channel
DLLValley.eu
DLLValley
docu
Dual.Audio
dubbed