* 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:
parent
8f1b21a02b
commit
e817ca4689
|
@ -283,7 +283,8 @@ public class MediaDetection {
|
||||||
|
|
||||||
// check all filenames if necessary
|
// check all filenames if necessary
|
||||||
if (matches.isEmpty()) {
|
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
|
// use lenient sub sequence matching only as fallback
|
||||||
|
|
|
@ -129,7 +129,7 @@ public class ReleaseInfo {
|
||||||
Pattern queryBlacklist = getBlacklistPattern();
|
Pattern queryBlacklist = getBlacklistPattern();
|
||||||
|
|
||||||
stopwords = new Pattern[] { languageTag, videoSource, videoFormat, resolution, languageSuffix };
|
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
|
// cache compiled patterns for common usage
|
||||||
this.stopwords.put(strict, stopwords);
|
this.stopwords.put(strict, stopwords);
|
||||||
|
|
|
@ -73,6 +73,7 @@ Director's.Cut
|
||||||
Directors.Cut
|
Directors.Cut
|
||||||
Discovery.Channel
|
Discovery.Channel
|
||||||
DLLValley.eu
|
DLLValley.eu
|
||||||
|
DLLValley
|
||||||
docu
|
docu
|
||||||
Dual.Audio
|
Dual.Audio
|
||||||
dubbed
|
dubbed
|
||||||
|
|
Loading…
Reference in New Issue