From 3ba2b40327ee0bb45f11f23013fab859fd1cf2c3 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 29 Jul 2012 06:31:56 +0000 Subject: [PATCH] * auto-detect queries only from video files --- source/net/sourceforge/filebot/cli/CmdlineOperations.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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());