diff --git a/source/net/filebot/similarity/EpisodeMetrics.java b/source/net/filebot/similarity/EpisodeMetrics.java index 0a8eeb07..a2ce2045 100644 --- a/source/net/filebot/similarity/EpisodeMetrics.java +++ b/source/net/filebot/similarity/EpisodeMetrics.java @@ -28,6 +28,7 @@ import java.util.stream.Stream; import com.ibm.icu.text.Transliterator; +import net.filebot.format.BindingException; import net.filebot.format.MediaBindingBean; import net.filebot.media.SmartSeasonEpisodeMatcher; import net.filebot.similarity.SeasonEpisodeMatcher.SxE; @@ -549,8 +550,10 @@ public enum EpisodeMetrics implements SimilarityMetric { if (VIDEO_FILES.accept(file) && file.length() > ONE_MEGABYTE) { try { return new MediaBindingBean(file, file).getEncodedDate().getTimeStamp(); + } catch (BindingException e) { + debug.finest(e::getMessage); // Binding "General[0][Encoded_Date]": undefined => normal if Encoded_Date is undefined => ignore } catch (Exception e) { - debug.warning(format("Failed to read media encoding date: %s", e.getMessage())); + debug.warning("Failed to read media encoding date: " + e.getMessage()); } }