* just pick the first hash match if we can't auto-guess the best possible match (and make CLI behave like the GUI)

This commit is contained in:
Reinhard Pointner 2015-12-17 21:14:06 +00:00
parent 17e23a827e
commit 3db65e359d
1 changed files with 1 additions and 1 deletions

View File

@ -720,7 +720,7 @@ public class CmdlineOperations implements CmdlineInterface {
try { try {
CLILogger.fine("Looking up subtitles by hash via " + service.getName()); CLILogger.fine("Looking up subtitles by hash via " + service.getName());
Map<File, SubtitleDescriptor> subtitles = lookupSubtitleByHash(service, language, remainingVideos, false); Map<File, SubtitleDescriptor> subtitles = lookupSubtitleByHash(service, language, remainingVideos, strict);
Map<File, File> downloads = downloadSubtitleBatch(service.getName(), subtitles, outputFormat, outputEncoding, naming); Map<File, File> downloads = downloadSubtitleBatch(service.getName(), subtitles, outputFormat, outputEncoding, naming);
remainingVideos.removeAll(downloads.keySet()); remainingVideos.removeAll(downloads.keySet());
subtitleFiles.addAll(downloads.values()); subtitleFiles.addAll(downloads.values());