* 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
1 changed files with 4 additions and 3 deletions

View File

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