From 4b0fb75339bf94afdd11f037d2cd5e797df63dcd Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 20 Oct 2015 07:43:23 +0000 Subject: [PATCH] * make sure {duration} is an Integer value --- source/net/filebot/format/MediaBindingBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index 4a323bbd..35618e7f 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -627,7 +627,7 @@ public class MediaBindingBean { @Define("duration") public Long getDuration() { - return new Double(getMediaInfo(StreamKind.General, 0, "Duration")).longValue(); + return (long) Double.parseDouble(getMediaInfo(StreamKind.General, 0, "Duration")); } @Define("seconds")