1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-17 23:05:03 -05:00

Metadata Object binding {object}

This commit is contained in:
Reinhard Pointner 2016-05-18 20:44:42 +08:00
parent 44ea9720ff
commit e83901f174

View File

@ -86,6 +86,7 @@ public class MediaBindingBean {
this.context = context; this.context = context;
} }
@Define("object")
public Object getInfoObject() { public Object getInfoObject() {
return infoObject; return infoObject;
} }
@ -878,7 +879,7 @@ public class MediaBindingBean {
return null; return null;
} }
@Define("mediaType") @Define("mime")
public List<String> getMediaType() throws Exception { public List<String> getMediaType() throws Exception {
// format engine does not allow / in binding value // format engine does not allow / in binding value
return SLASH.splitAsStream(MediaTypes.getDefault().getMediaType(getExtension())).collect(toList()); return SLASH.splitAsStream(MediaTypes.getDefault().getMediaType(getExtension())).collect(toList());
@ -890,7 +891,6 @@ public class MediaBindingBean {
if (mediaFile == null) { if (mediaFile == null) {
throw new IllegalStateException(EXCEPTION_SAMPLE_FILE_NOT_SET); throw new IllegalStateException(EXCEPTION_SAMPLE_FILE_NOT_SET);
} }
return mediaFile; return mediaFile;
} }