1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

Revert xattr changes

This commit is contained in:
Reinhard Pointner 2016-08-10 01:46:54 +08:00
parent afe7f81065
commit 13349bd031

View File

@ -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<String, Object> getJsonOptions() {
return null;
}
}