From bb5ac66c98f208117eb218ef685a27d315713095 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 15 Feb 2013 10:42:50 +0000 Subject: [PATCH] * set xattr only for episode/movie files --- source/net/sourceforge/filebot/media/MediaDetection.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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());