mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
* ignore failed xattr read
This commit is contained in:
parent
dc9f6f5d12
commit
8ba347f4f7
@ -405,10 +405,14 @@ public class MediaBindingBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// try CRC32 xattr (as stored by verify script)
|
// try CRC32 xattr (as stored by verify script)
|
||||||
MetaAttributeView xattr = new MetaAttributeView(inferredMediaFile);
|
try {
|
||||||
checksum = xattr.get("CRC32");
|
MetaAttributeView xattr = new MetaAttributeView(inferredMediaFile);
|
||||||
if (checksum != null) {
|
checksum = xattr.get("CRC32");
|
||||||
return checksum;
|
if (checksum != null) {
|
||||||
|
return checksum;
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
// ignore if xattr metadata is not supported for the given file
|
||||||
}
|
}
|
||||||
|
|
||||||
// calculate checksum from file
|
// calculate checksum from file
|
||||||
@ -962,7 +966,7 @@ public class MediaBindingBean {
|
|||||||
private String getOriginalFileName(File file) {
|
private String getOriginalFileName(File file) {
|
||||||
try {
|
try {
|
||||||
return new MetaAttributes(file).getOriginalName();
|
return new MetaAttributes(file).getOriginalName();
|
||||||
} catch (Throwable e) {
|
} catch (Exception e) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user