* make movie index lookup more restrictive and reliable

This commit is contained in:
Reinhard Pointner 2012-12-09 18:57:04 +00:00
parent 35e95c3a43
commit 419884ab73
2 changed files with 22 additions and 7 deletions

View File

@ -419,7 +419,10 @@ public class MediaDetection {
terms.add(reduceMovieName(getName(movieFolder)));
}
List<Movie> movieNameMatches = matchMovieName(terms, strict, 3);
List<Movie> movieNameMatches = matchMovieName(terms, true, 0);
if (movieNameMatches.isEmpty()) {
movieNameMatches = matchMovieName(terms, strict, 2);
}
// skip further queries if collected matches are already sufficient
if (options.size() > 0 && movieNameMatches.size() > 0) {
@ -429,7 +432,10 @@ public class MediaDetection {
// if matching name+year failed, try matching only by name
if (movieNameMatches.isEmpty() && strict) {
movieNameMatches = matchMovieName(terms, false, 3);
movieNameMatches = matchMovieName(terms, false, 0);
if (movieNameMatches.isEmpty()) {
movieNameMatches = matchMovieName(terms, false, 2);
}
}
// assume name without spacing will mess up any lookup

View File

@ -1,8 +1,3 @@
(?-i:ENGLISH)
(?-i:FRENCH)
(?-i:GERMAN)
(?-i:SPANISH)
(?-i:SWEDISH|SWEDiSH)
.+sample$
1-3-3-8.com
5[.,]1
@ -32,17 +27,24 @@
^DVD
^Erotic$
^Extract$
^Film$
^Film[s]?
^Filme$
^Finished
^home$
^Horror$
^HVDVD_TS$
^In.Progress$
^Incoming$
^jukebox$
^media$
^mnt$
^Movie[s]?
^new$
^other$
^private$
^pyload$
^raid$
^Romance$
^rtorrent$
^Science.Fiction$
@ -58,6 +60,7 @@
^Torrent[s]?
^Tracker
^Trailer
^transfer$
^user$
^VCD$
^VIDEO_TS$
@ -93,6 +96,7 @@ dubbed
DVDXvID
DVSKY
ENG
English
EXTENDED
Extended.Version
ExtraScene
@ -102,7 +106,9 @@ Final.Cut
FIXED
Fra
FRE
French
GER
German
Hard.Subbed
HBO
HDRip
@ -116,6 +122,7 @@ iPod
ISO
iTA
iTALIA
Italian
jigaxx
KIDZCORNER
KOR
@ -158,6 +165,7 @@ ShareZONE
ShortKut
Snapshots
SPA
Spanish
Special.Edition
Sub
SUBBED
@ -165,6 +173,7 @@ Subs
Subtit
Subtitle
swe.?sub
Swedish
SYNC
SYNCED
SYNCFIX