mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 00:38:52 -05:00
* 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.Collections.*;
|
||||
import static net.sourceforge.filebot.MediaTypes.*;
|
||||
import static net.sourceforge.filebot.Settings.*;
|
||||
import static net.sourceforge.filebot.format.Define.*;
|
||||
import static net.sourceforge.filebot.hash.VerificationUtilities.*;
|
||||
import static net.sourceforge.filebot.media.MediaDetection.*;
|
||||
@ -629,11 +630,14 @@ public class MediaBindingBean {
|
||||
|
||||
|
||||
private String getOriginalFileName(File file) {
|
||||
if (useExtendedFileAttributes()) {
|
||||
try {
|
||||
return new MetaAttributes(file).getOriginalName();
|
||||
} catch (Throwable e) {
|
||||
return null;
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user