* fine-tune movie ranking
This commit is contained in:
parent
2a424ad3b2
commit
7e1a8bb5c7
|
@ -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()));
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1132,6 +1132,7 @@ iRoNiCs
|
||||||
iSD
|
iSD
|
||||||
iSG
|
iSG
|
||||||
iSRAELiTE
|
iSRAELiTE
|
||||||
|
israntxa
|
||||||
iTA
|
iTA
|
||||||
ITG
|
ITG
|
||||||
iTSDVD
|
iTSDVD
|
||||||
|
|
Loading…
Reference in New Issue