From 226559683bcea78ac8afd9d31bc458793e946d09 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 15 Aug 2016 22:14:03 +0800 Subject: [PATCH] compatibility constructor for sysinfo.groovy script --- source/net/filebot/media/MetaAttributes.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/net/filebot/media/MetaAttributes.java b/source/net/filebot/media/MetaAttributes.java index cc6e433c..158f4baf 100644 --- a/source/net/filebot/media/MetaAttributes.java +++ b/source/net/filebot/media/MetaAttributes.java @@ -25,6 +25,11 @@ public class MetaAttributes { private final Map jsonTypeMap; + // compatibility constructor for sysinfo.groovy script + public MetaAttributes(File file) throws IOException { + this(file, emptyMap()); + } + public MetaAttributes(File file, Map jsonTypeMap) throws IOException { this.metaAttributeView = new MetaAttributeView(file); this.fileAttributeView = Files.getFileAttributeView(file.toPath(), BasicFileAttributeView.class);