* fck osdb moviehash collisions
This commit is contained in:
parent
ac90b544bb
commit
03ab54ddcc
|
@ -323,12 +323,12 @@ public class CmdlineOperations implements CmdlineInterface {
|
|||
if (query == null) {
|
||||
if (movieFiles.size() > 0) {
|
||||
try {
|
||||
CLILogger.fine(format("Looking up movie by filehash via [%s]", service.getName()));
|
||||
CLILogger.finest(format("Looking up movie by filehash via [%s]", service.getName()));
|
||||
Map<File, Movie> hashLookup = service.getMovieDescriptors(movieFiles, locale);
|
||||
movieByFile.putAll(hashLookup);
|
||||
Analytics.trackEvent(service.getName(), "HashLookup", "Movie", hashLookup.size()); // number of positive hash lookups
|
||||
} catch (UnsupportedOperationException e) {
|
||||
CLILogger.fine(format("%s: Hash lookup not supported", service.getName()));
|
||||
CLILogger.finest(format("%s: Hash lookup not supported", service.getName()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -202,7 +202,7 @@ def detectSeriesName(files, locale = Locale.ENGLISH) {
|
|||
return names == null || names.isEmpty() ? null : names.toList()[0]
|
||||
}
|
||||
|
||||
def detectMovie(movieFile, strict = true, locale = Locale.ENGLISH, hashLookupService = OpenSubtitles, queryLookupService = TheMovieDB) {
|
||||
def detectMovie(movieFile, strict = true, queryLookupService = TheMovieDB, hashLookupService = null, locale = Locale.ENGLISH) {
|
||||
def movies = MediaDetection.detectMovie(movieFile, hashLookupService, queryLookupService, locale, strict)
|
||||
return movies == null || movies.isEmpty() ? null : movies.toList()[0]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue