mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
* set xattr only for episode/movie files
This commit is contained in:
parent
24f9b8d92a
commit
bb5ac66c98
@ -842,10 +842,11 @@ 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…
x
Reference in New Issue
Block a user