* auto-detect queries only from video files
This commit is contained in:
parent
dfc6fa7419
commit
3ba2b40327
@ -42,7 +42,6 @@ import java.util.concurrent.ExecutorService;
|
|||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.Future;
|
import java.util.concurrent.Future;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import net.sourceforge.filebot.Analytics;
|
import net.sourceforge.filebot.Analytics;
|
||||||
@ -600,11 +599,11 @@ public class CmdlineOperations implements CmdlineInterface {
|
|||||||
|
|
||||||
if (query == null) {
|
if (query == null) {
|
||||||
try {
|
try {
|
||||||
List<File> mediaFiles = filter(files, VIDEO_FILES, SUBTITLE_FILES);
|
List<File> videoFiles = filter(files, VIDEO_FILES);
|
||||||
querySet.addAll(detectSeriesNames(mediaFiles, language.toLocale()));
|
querySet.addAll(detectSeriesNames(videoFiles, language.toLocale()));
|
||||||
|
|
||||||
// auto-detect movie names
|
// auto-detect movie names
|
||||||
for (File f : files) {
|
for (File f : videoFiles) {
|
||||||
if (!isEpisode(f.getName(), false)) {
|
if (!isEpisode(f.getName(), false)) {
|
||||||
for (Movie movie : detectMovie(f, null, null, language.toLocale(), strict)) {
|
for (Movie movie : detectMovie(f, null, null, language.toLocale(), strict)) {
|
||||||
querySet.add(movie.getName());
|
querySet.add(movie.getName());
|
||||||
|
Loading…
Reference in New Issue
Block a user