* respect xattr settings

This commit is contained in:
Reinhard Pointner 2012-10-26 19:13:08 +00:00
parent e97a0ef9b1
commit 7ac1eeb5a4
1 changed files with 8 additions and 4 deletions

View File

@ -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;
} }
} }