From c99be48cf0f345ae93b9d02143a253c8fa1a399b Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 7 Aug 2016 05:49:42 +0800 Subject: [PATCH] Added Integer binding for {runtime} --- source/net/filebot/format/MediaBindingBean.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index 8c33824a..9ea4a252 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -573,6 +573,12 @@ public class MediaBindingBean { return null; } + @Define("runtime") + public Integer getRuntime() { + Object runtime = getMetaInfo().getProperty("runtime"); + return runtime instanceof Integer ? (Integer) runtime : Integer.parseInt(runtime.toString()); + } + @Define("actors") public Object getActors() { return getMetaInfo().getProperty("actors");