mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 14:31:04 -04:00
* clear name of punctuation, spacing, and leading 'The' or 'A' that are common causes for word-lookup to fail
This commit is contained in:
parent
3864ee5b86
commit
b7da78c942
@ -615,7 +615,8 @@ public class MediaDetection {
|
|||||||
|
|
||||||
|
|
||||||
public static List<Movie> matchMovieFromStringWithoutSpacing(Collection<String> names, boolean strict) throws IOException {
|
public static List<Movie> matchMovieFromStringWithoutSpacing(Collection<String> names, boolean strict) throws IOException {
|
||||||
Pattern spacing = Pattern.compile("[\\p{Punct}\\p{Space}]+");
|
// clear name of punctuation, spacing, and leading 'The' or 'A' that are common causes for word-lookup to fail
|
||||||
|
Pattern spacing = Pattern.compile("(^(?i)(The|A)\\b)|[\\p{Punct}\\p{Space}]+");
|
||||||
|
|
||||||
List<String> terms = new ArrayList<String>(names.size());
|
List<String> terms = new ArrayList<String>(names.size());
|
||||||
for (String it : names) {
|
for (String it : names) {
|
||||||
|
@ -62,8 +62,11 @@
|
|||||||
^Sort$
|
^Sort$
|
||||||
^Staging$
|
^Staging$
|
||||||
^Storage$
|
^Storage$
|
||||||
|
^temp$
|
||||||
|
^temporary$
|
||||||
^Test$
|
^Test$
|
||||||
^testdata$
|
^testdata$
|
||||||
|
^tmp$
|
||||||
^Torrent[s]?
|
^Torrent[s]?
|
||||||
^Tracker
|
^Tracker
|
||||||
^Trailer
|
^Trailer
|
||||||
@ -72,6 +75,7 @@
|
|||||||
^user$
|
^user$
|
||||||
^VCD$
|
^VCD$
|
||||||
^VIDEO_TS$
|
^VIDEO_TS$
|
||||||
|
^volume[0-9]?$
|
||||||
^watch$
|
^watch$
|
||||||
A.Release.Lounge
|
A.Release.Lounge
|
||||||
ABC
|
ABC
|
||||||
|
@ -174,6 +174,7 @@ BDr
|
|||||||
beAst
|
beAst
|
||||||
BEEF.STEW
|
BEEF.STEW
|
||||||
BeefStew
|
BeefStew
|
||||||
|
BeFree
|
||||||
BeStDivX
|
BeStDivX
|
||||||
BeStDvD
|
BeStDvD
|
||||||
BestHD
|
BestHD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user