From 91b0074e70e94633086622149325357feb3b60eb Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 21 Apr 2017 21:14:16 +0800 Subject: [PATCH] Extended the horizon from 3 levels to 4 levels --- source/net/filebot/media/MediaDetection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/media/MediaDetection.java b/source/net/filebot/media/MediaDetection.java index 06cba2b6..fedd5a74 100644 --- a/source/net/filebot/media/MediaDetection.java +++ b/source/net/filebot/media/MediaDetection.java @@ -798,10 +798,10 @@ public class MediaDetection { } } - // first parent folder that matches a movie (max 3 levels deep) + // first parent folder that matches a movie (max 4 levels deep) for (boolean strictness : new boolean[] { true, false }) { File f = movieFile.getParentFile(); - for (int i = 0; f != null && i < 3 && !isStructureRoot(f); f = f.getParentFile(), i++) { + for (int i = 0; f != null && i < 4 && !isStructureRoot(f); f = f.getParentFile(), i++) { String term = stripReleaseInfo(f.getName()); if (term.length() > 0 && checkMovie(f, strictness) != null) { return f;