From e83901f174a996727da5708611746db22bc52cb0 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 18 May 2016 20:44:42 +0800 Subject: [PATCH] Metadata Object binding {object} --- source/net/filebot/format/MediaBindingBean.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index b47ca9f7..fc0f05f3 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -86,6 +86,7 @@ public class MediaBindingBean { this.context = context; } + @Define("object") public Object getInfoObject() { return infoObject; } @@ -878,7 +879,7 @@ public class MediaBindingBean { return null; } - @Define("mediaType") + @Define("mime") public List getMediaType() throws Exception { // format engine does not allow / in binding value return SLASH.splitAsStream(MediaTypes.getDefault().getMediaType(getExtension())).collect(toList()); @@ -890,7 +891,6 @@ public class MediaBindingBean { if (mediaFile == null) { throw new IllegalStateException(EXCEPTION_SAMPLE_FILE_NOT_SET); } - return mediaFile; }