mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-16 06:15:02 -05:00
* try to set metadata first so if it fails the exception is about metadata xattr
This commit is contained in:
parent
13a694aa6f
commit
8720d13378
@ -1061,10 +1061,10 @@ public class MediaDetection {
|
||||
|
||||
// store original name and model as xattr
|
||||
try {
|
||||
xattr.setObject(model);
|
||||
if (xattr.getOriginalName() == null) {
|
||||
xattr.setOriginalName(file.getName());
|
||||
}
|
||||
xattr.setObject(model);
|
||||
} catch (Exception e) {
|
||||
Logger.getLogger(MediaDetection.class.getClass().getName()).warning("Failed to set xattr: " + e.getMessage());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user