diff --git a/source/net/filebot/media/MetaAttributes.java b/source/net/filebot/media/MetaAttributes.java index 3219056c..57632e4b 100644 --- a/source/net/filebot/media/MetaAttributes.java +++ b/source/net/filebot/media/MetaAttributes.java @@ -1,26 +1,15 @@ package net.filebot.media; -import static java.util.stream.Collectors.*; - import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.attribute.BasicFileAttributeView; import java.nio.file.attribute.FileTime; -import java.util.HashMap; -import java.util.Map; -import java.util.stream.Stream; import com.cedarsoftware.util.io.JsonReader; import com.cedarsoftware.util.io.JsonWriter; import net.filebot.MetaAttributeView; -import net.filebot.web.AudioTrack; -import net.filebot.web.Episode; -import net.filebot.web.Movie; -import net.filebot.web.MoviePart; -import net.filebot.web.SeriesInfo; -import net.filebot.web.SimpleDate; public class MetaAttributes { @@ -57,7 +46,7 @@ public class MetaAttributes { public void setObject(Object object) { try { - metaAttributeView.put(METADATA_KEY, JsonWriter.objectToJson(object, getJsonOptions())); + metaAttributeView.put(METADATA_KEY, JsonWriter.objectToJson(object)); } catch (Exception e) { throw new RuntimeException(e); } @@ -67,7 +56,7 @@ public class MetaAttributes { try { String jsonObject = metaAttributeView.get(METADATA_KEY); if (jsonObject != null && jsonObject.length() > 0) { - return JsonReader.jsonToJava(jsonObject, getJsonOptions()); + return JsonReader.jsonToJava(jsonObject); } } catch (Exception e) { throw new RuntimeException(e); @@ -80,8 +69,4 @@ public class MetaAttributes { metaAttributeView.put(METADATA_KEY, null); } - public Map getJsonOptions() { - return null; - } - }