Revert xattr changes
This commit is contained in:
parent
afe7f81065
commit
13349bd031
|
@ -1,26 +1,15 @@
|
||||||
package net.filebot.media;
|
package net.filebot.media;
|
||||||
|
|
||||||
import static java.util.stream.Collectors.*;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.attribute.BasicFileAttributeView;
|
import java.nio.file.attribute.BasicFileAttributeView;
|
||||||
import java.nio.file.attribute.FileTime;
|
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.JsonReader;
|
||||||
import com.cedarsoftware.util.io.JsonWriter;
|
import com.cedarsoftware.util.io.JsonWriter;
|
||||||
|
|
||||||
import net.filebot.MetaAttributeView;
|
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 {
|
public class MetaAttributes {
|
||||||
|
|
||||||
|
@ -57,7 +46,7 @@ public class MetaAttributes {
|
||||||
|
|
||||||
public void setObject(Object object) {
|
public void setObject(Object object) {
|
||||||
try {
|
try {
|
||||||
metaAttributeView.put(METADATA_KEY, JsonWriter.objectToJson(object, getJsonOptions()));
|
metaAttributeView.put(METADATA_KEY, JsonWriter.objectToJson(object));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
@ -67,7 +56,7 @@ public class MetaAttributes {
|
||||||
try {
|
try {
|
||||||
String jsonObject = metaAttributeView.get(METADATA_KEY);
|
String jsonObject = metaAttributeView.get(METADATA_KEY);
|
||||||
if (jsonObject != null && jsonObject.length() > 0) {
|
if (jsonObject != null && jsonObject.length() > 0) {
|
||||||
return JsonReader.jsonToJava(jsonObject, getJsonOptions());
|
return JsonReader.jsonToJava(jsonObject);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
@ -80,8 +69,4 @@ public class MetaAttributes {
|
||||||
metaAttributeView.put(METADATA_KEY, null);
|
metaAttributeView.put(METADATA_KEY, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, Object> getJsonOptions() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue