mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
List files within /Volumes as media root (sandbox seems to give access to folder listings for that)
This commit is contained in:
parent
685482a5f8
commit
684402fe12
@ -226,6 +226,7 @@ public class ReleaseInfo {
|
|||||||
if (isMacSandbox()) {
|
if (isMacSandbox()) {
|
||||||
// Mac
|
// Mac
|
||||||
for (File mediaRoot : getMediaRoots()) {
|
for (File mediaRoot : getMediaRoots()) {
|
||||||
|
volumes.addAll(getChildren(mediaRoot, FOLDERS));
|
||||||
volumes.add(mediaRoot);
|
volumes.add(mediaRoot);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -421,7 +422,7 @@ public class ReleaseInfo {
|
|||||||
|
|
||||||
public List<File> getMediaRoots() {
|
public List<File> getMediaRoots() {
|
||||||
String roots = getProperty("folder.media.roots");
|
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() {
|
public String[] getSubtitleCategoryTags() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user