* special case for movie detection in folder-mode that should eliminate many possible (possible in folder mode anyway) false positives
This commit is contained in:
parent
b638092409
commit
0b4b353912
|
@ -459,6 +459,11 @@ public class MediaDetection {
|
|||
|
||||
|
||||
public static File guessMovieFolder(File movieFile) throws IOException {
|
||||
// special case for folder mode
|
||||
if (movieFile.isDirectory()) {
|
||||
return movieFile;
|
||||
}
|
||||
|
||||
// first meaningful parent folder (max 2 levels deep)
|
||||
File f = movieFile.getParentFile();
|
||||
for (int i = 0; f != null && i < 2; f = f.getParentFile(), i++) {
|
||||
|
|
Loading…
Reference in New Issue