* set xattr only for episode/movie files
This commit is contained in:
parent
24f9b8d92a
commit
bb5ac66c98
|
@ -842,10 +842,11 @@ public class MediaDetection {
|
|||
try {
|
||||
if (model instanceof Episode || model instanceof Movie) {
|
||||
xattr.setMetaData(model);
|
||||
}
|
||||
|
||||
if (xattr.getOriginalName() == null) {
|
||||
xattr.setOriginalName(file.getName());
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Logger.getLogger(MediaDetection.class.getClass().getName()).warning("Failed to set xattr: " + e.getMessage());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue