From 6cbef1d20b2d755b129c8669e05782892feb5668 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 18 Jan 2015 12:47:57 +0000 Subject: [PATCH] * allow processing of subtitle files alongside of video files even if the subtitles are in nested folders --- source/net/filebot/cli/CmdlineOperations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/cli/CmdlineOperations.java b/source/net/filebot/cli/CmdlineOperations.java index 40627ca9..8b12eccf 100644 --- a/source/net/filebot/cli/CmdlineOperations.java +++ b/source/net/filebot/cli/CmdlineOperations.java @@ -226,7 +226,7 @@ public class CmdlineOperations implements CmdlineInterface { for (File file : derivateFiles) { for (Match match : matches) { - if (file.getParentFile().equals(match.getValue().getParentFile()) && isDerived(file, match.getValue()) && match.getCandidate() instanceof Episode) { + if (file.getPath().startsWith(match.getValue().getParentFile().getPath()) && isDerived(file, match.getValue()) && match.getCandidate() instanceof Episode) { derivateMatches.add(new Match(file, ((Episode) match.getCandidate()).clone())); break; }