* respect xattr settings
This commit is contained in:
parent
e97a0ef9b1
commit
7ac1eeb5a4
|
@ -5,6 +5,7 @@ package net.sourceforge.filebot.format;
|
||||||
import static java.util.Arrays.*;
|
import static java.util.Arrays.*;
|
||||||
import static java.util.Collections.*;
|
import static java.util.Collections.*;
|
||||||
import static net.sourceforge.filebot.MediaTypes.*;
|
import static net.sourceforge.filebot.MediaTypes.*;
|
||||||
|
import static net.sourceforge.filebot.Settings.*;
|
||||||
import static net.sourceforge.filebot.format.Define.*;
|
import static net.sourceforge.filebot.format.Define.*;
|
||||||
import static net.sourceforge.filebot.hash.VerificationUtilities.*;
|
import static net.sourceforge.filebot.hash.VerificationUtilities.*;
|
||||||
import static net.sourceforge.filebot.media.MediaDetection.*;
|
import static net.sourceforge.filebot.media.MediaDetection.*;
|
||||||
|
@ -629,11 +630,14 @@ public class MediaBindingBean {
|
||||||
|
|
||||||
|
|
||||||
private String getOriginalFileName(File file) {
|
private String getOriginalFileName(File file) {
|
||||||
try {
|
if (useExtendedFileAttributes()) {
|
||||||
return new MetaAttributes(file).getOriginalName();
|
try {
|
||||||
} catch (Throwable e) {
|
return new MetaAttributes(file).getOriginalName();
|
||||||
return null;
|
} catch (Throwable e) {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue