* fine-tune movie ranking

This commit is contained in:
Reinhard Pointner 2013-09-23 15:47:14 +00:00
parent 2a424ad3b2
commit 7e1a8bb5c7
3 changed files with 7 additions and 1 deletions

View File

@ -616,7 +616,10 @@ public class MediaDetection {
} }
public static <T> List<T> sortBySimilarity(Collection<T> options, Collection<String> terms) throws IOException { public static <T> List<T> sortBySimilarity(Collection<T> options, Collection<String> terms) throws IOException {
List<String> paragon = stripReleaseInfo(terms, true); Collection<String> paragon = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER);
paragon.addAll(stripReleaseInfo(terms, true));
paragon.addAll(stripReleaseInfo(terms, false));
List<T> sorted = new ArrayList<T>(options); List<T> sorted = new ArrayList<T>(options);
sort(sorted, new SimilarityComparator(getMovieMatchMetric(), paragon.toArray())); sort(sorted, new SimilarityComparator(getMovieMatchMetric(), paragon.toArray()));

View File

@ -99,6 +99,7 @@
^volume[0-9]?$ ^volume[0-9]?$
^Volumes$ ^Volumes$
^watch$ ^watch$
A.PROCESAR
A.Release.Lounge A.Release.Lounge
ABC ABC
AC3D AC3D
@ -205,6 +206,7 @@ o2.pl
onlinetvrecorder onlinetvrecorder
P2P P2P
PBS PBS
PELICULAS
plex plex
Pre.?DVD Pre.?DVD
PROPER PROPER

View File

@ -1132,6 +1132,7 @@ iRoNiCs
iSD iSD
iSG iSG
iSRAELiTE iSRAELiTE
israntxa
iTA iTA
ITG ITG
iTSDVD iTSDVD