From 684402fe127ec13121c2549ab231fd1b7a0e398d Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 21 Apr 2018 11:21:50 +0700 Subject: [PATCH] List files within /Volumes as media root (sandbox seems to give access to folder listings for that) --- source/net/filebot/media/ReleaseInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/media/ReleaseInfo.java b/source/net/filebot/media/ReleaseInfo.java index c3bcb3b0..43df71c5 100644 --- a/source/net/filebot/media/ReleaseInfo.java +++ b/source/net/filebot/media/ReleaseInfo.java @@ -226,6 +226,7 @@ public class ReleaseInfo { if (isMacSandbox()) { // Mac for (File mediaRoot : getMediaRoots()) { + volumes.addAll(getChildren(mediaRoot, FOLDERS)); volumes.add(mediaRoot); } @@ -421,7 +422,7 @@ public class ReleaseInfo { public List getMediaRoots() { String roots = getProperty("folder.media.roots"); - return COMMA.splitAsStream(roots).map(File::new).collect(toList()); + return COMMA.splitAsStream(roots).map(File::new).filter(File::exists).collect(toList()); } public String[] getSubtitleCategoryTags() {