* set xattr only for episode/movie files
This commit is contained in:
parent
24f9b8d92a
commit
bb5ac66c98
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue