1
0
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:
Reinhard Pointner 2013-11-03 09:42:58 +00:00
parent 13a694aa6f
commit 8720d13378

View File

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