1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 08:48:51 -05:00

All $HOME/FOLDERS are considered structure root folders

This commit is contained in:
Reinhard Pointner 2016-08-04 15:06:54 +08:00
parent 71548a4f41
commit df6e8bd182

View File

@ -42,6 +42,7 @@ import java.util.logging.Level;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.filebot.ApplicationFolder;
import net.filebot.Resource;
import net.filebot.WebServices;
import net.filebot.archive.Archive;
@ -988,7 +989,7 @@ public class MediaDetection {
}
public static boolean isStructureRoot(File folder) throws Exception {
return isVolumeRoot(folder) || releaseInfo.getStructureRootPattern().matcher(folder.getName()).matches();
return isVolumeRoot(folder) || releaseInfo.getStructureRootPattern().matcher(folder.getName()).matches() || ApplicationFolder.UserHome.get().equals(folder.getParentFile());
}
public static File getStructureRoot(File file) throws Exception {