mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-15 22:05:00 -05:00
Extended the horizon from 3 levels to 4 levels
This commit is contained in:
parent
392099ad9b
commit
91b0074e70
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user