mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-16 06:15:02 -05:00
* make sure the user.home is never considered a movie folder
This commit is contained in:
parent
7cf2177f79
commit
86723cb3bf
@ -632,6 +632,18 @@ public class MediaDetection {
|
||||
|
||||
|
||||
public static File guessMovieFolder(File movieFile) throws Exception {
|
||||
File folder = guessMovieFolderWithoutSanity(movieFile);
|
||||
|
||||
// perform sanity checks
|
||||
if (folder == null || folder.equals(new File(System.getProperty("user.home")))) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return folder;
|
||||
}
|
||||
|
||||
|
||||
private static File guessMovieFolderWithoutSanity(File movieFile) throws Exception {
|
||||
// special case for folder mode
|
||||
if (movieFile.isDirectory()) {
|
||||
File f = movieFile;
|
||||
|
@ -112,6 +112,7 @@ DDLValley
|
||||
DDLValley.eu
|
||||
ded
|
||||
Demonoid
|
||||
Descargas
|
||||
Director's.Cut
|
||||
Directors.Cut
|
||||
DKsubs
|
||||
|
Loading…
Reference in New Issue
Block a user