* 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 {
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);
sort(sorted, new SimilarityComparator(getMovieMatchMetric(), paragon.toArray()));

View File

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

View File

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