amc and movie detection fine-tuning

@see http://www.filebot.net/forums/viewtopic.php?f=4&p=5379#p5375
This commit is contained in:
Reinhard Pointner 2013-07-24 12:05:12 +00:00
parent e83de902ee
commit 27575e411e
4 changed files with 8 additions and 3 deletions

View File

@ -897,7 +897,7 @@ public class CmdlineOperations implements CmdlineInterface {
} }
// return first and only value // return first and only value
return probableMatches.size() <= 5 ? probableMatches : probableMatches.subList(0, 5); return probableMatches.size() <= 3 ? probableMatches : probableMatches.subList(0, 3); // trust that the correct match is in the Top 3
} }

View File

@ -619,6 +619,10 @@ public class MediaDetection {
List<String> paragon = stripReleaseInfo(terms, true); List<String> paragon = stripReleaseInfo(terms, true);
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()));
// DEBUG
// System.out.format("sortBySimilarity %s => %s", terms, options);
return sorted; return sorted;
} }
@ -814,7 +818,7 @@ public class MediaDetection {
querySet.addAll(stripReleaseInfo(files, false)); querySet.addAll(stripReleaseInfo(files, false));
// remove duplicates // remove duplicates
querySet = getUniqueQuerySet(querySet); querySet = getUniqueQuerySet(stripBlacklistedTerms(querySet));
// DEBUG // DEBUG
// System.out.format("Query %s: %s%n", queryLookupService.getName(), querySet); // System.out.format("Query %s: %s%n", queryLookupService.getName(), querySet);

View File

@ -46,6 +46,7 @@
^HVDVD_TS$ ^HVDVD_TS$
^In.Progress$ ^In.Progress$
^Incoming$ ^Incoming$
^I|II|III$
^jukebox$ ^jukebox$
^MD0_DATA$ ^MD0_DATA$
^media$ ^media$

View File

@ -1494,7 +1494,7 @@ PAPAi
papi papi
PAROVOZ PAROVOZ
PARTICLE PARTICLE
Pate PATE
PaTHe PaTHe
PaYxXx PaYxXx
PC PC