diff --git a/source/net/sourceforge/filebot/cli/CmdlineOperations.java b/source/net/sourceforge/filebot/cli/CmdlineOperations.java index b3c3a7aa..dfc23128 100644 --- a/source/net/sourceforge/filebot/cli/CmdlineOperations.java +++ b/source/net/sourceforge/filebot/cli/CmdlineOperations.java @@ -42,7 +42,6 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.logging.Level; -import java.util.logging.Logger; import java.util.regex.Pattern; import net.sourceforge.filebot.Analytics; @@ -600,11 +599,11 @@ public class CmdlineOperations implements CmdlineInterface { if (query == null) { try { - List mediaFiles = filter(files, VIDEO_FILES, SUBTITLE_FILES); - querySet.addAll(detectSeriesNames(mediaFiles, language.toLocale())); + List videoFiles = filter(files, VIDEO_FILES); + querySet.addAll(detectSeriesNames(videoFiles, language.toLocale())); // auto-detect movie names - for (File f : files) { + for (File f : videoFiles) { if (!isEpisode(f.getName(), false)) { for (Movie movie : detectMovie(f, null, null, language.toLocale(), strict)) { querySet.add(movie.getName());