diff --git a/source/net/sourceforge/filebot/media/MediaDetection.java b/source/net/sourceforge/filebot/media/MediaDetection.java index 4c4839b2..87536b05 100644 --- a/source/net/sourceforge/filebot/media/MediaDetection.java +++ b/source/net/sourceforge/filebot/media/MediaDetection.java @@ -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());