1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* set xattr only for episode/movie files

This commit is contained in:
Reinhard Pointner 2013-02-15 10:42:50 +00:00
parent 24f9b8d92a
commit bb5ac66c98

View File

@ -842,9 +842,10 @@ public class MediaDetection {
try {
if (model instanceof Episode || model instanceof Movie) {
xattr.setMetaData(model);
}
if (xattr.getOriginalName() == null) {
xattr.setOriginalName(file.getName());
if (xattr.getOriginalName() == null) {
xattr.setOriginalName(file.getName());
}
}
} catch (Exception e) {
Logger.getLogger(MediaDetection.class.getClass().getName()).warning("Failed to set xattr: " + e.getMessage());