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 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<T> sorted = new ArrayList<T>(options);
sort(sorted, new SimilarityComparator(getMovieMatchMetric(), paragon.toArray()));
// DEBUG
// System.out.format("sortBySimilarity %s => %s", terms, options);
return sorted;
}
@ -814,7 +818,7 @@ public class MediaDetection {
querySet.addAll(stripReleaseInfo(files, false));
// remove duplicates
querySet = getUniqueQuerySet(querySet);
querySet = getUniqueQuerySet(stripBlacklistedTerms(querySet));
// DEBUG
// System.out.format("Query %s: %s%n", queryLookupService.getName(), querySet);

View File

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

View File

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