* fix -get-missing-subtitles issue if user already has multiple subtitles in multiple languages

This commit is contained in:
Reinhard Pointner 2014-05-20 12:36:52 +00:00
parent 49b49b80b7
commit d53de9b922
1 changed files with 3 additions and 2 deletions

View File

@ -757,6 +757,7 @@ public class CmdlineOperations implements CmdlineInterface {
cache.put(video.getParentFile(), subtitlesByFolder); cache.put(video.getParentFile(), subtitlesByFolder);
} }
boolean accept = true;
for (File subtitle : subtitlesByFolder) { for (File subtitle : subtitlesByFolder) {
// can't tell which subtitle belongs to which file -> if any subtitles exist skip the whole folder // can't tell which subtitle belongs to which file -> if any subtitles exist skip the whole folder
if (naming == SubtitleNaming.ORIGINAL) { if (naming == SubtitleNaming.ORIGINAL) {
@ -765,11 +766,11 @@ public class CmdlineOperations implements CmdlineInterface {
if (naming == SubtitleNaming.MATCH_VIDEO) { if (naming == SubtitleNaming.MATCH_VIDEO) {
return false; return false;
} else { } else {
return !matchesLanguageCode(subtitle); accept &= !matchesLanguageCode(subtitle);
} }
} }
} }
return true; return accept;
} }
}); });