X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fdata%2FMetaData.java;h=8185ddd235340c07e814eae3665464a056762f3d;hb=39cd9738bfcdafaf8806d5007e443e572f8994c0;hp=06cf625d3a66e59056d124e0172ab14c7f482e0a;hpb=793f1071fae48daed3b545a03a286c85e527d244;p=nikiroo-utils.git diff --git a/src/be/nikiroo/fanfix/data/MetaData.java b/src/be/nikiroo/fanfix/data/MetaData.java index 06cf625..8185ddd 100644 --- a/src/be/nikiroo/fanfix/data/MetaData.java +++ b/src/be/nikiroo/fanfix/data/MetaData.java @@ -27,6 +27,7 @@ public class MetaData implements Cloneable, Comparable { private boolean imageDocument; private long words; private String creationDate; + private boolean fakeCover; /** * The title of the story. @@ -234,7 +235,7 @@ public class MetaData implements Cloneable, Comparable { /** * A unique value representing the story in the local library. * - * @param uuid + * @param luid * the luid to set */ public void setLuid(String luid) { @@ -355,6 +356,28 @@ public class MetaData implements Cloneable, Comparable { this.creationDate = creationDate; } + /** + * The cover in this {@link MetaData} object is "fake", in the sens that it + * comes from the actual content images. + * + * @return TRUE for a fake cover + */ + public boolean isFakeCover() { + return fakeCover; + } + + /** + * The cover in this {@link MetaData} object is "fake", in the sens that it + * comes from the actual content images + * + * @param fakeCover + * TRUE for a fake cover + */ + public void setFakeCover(boolean fakeCover) { + this.fakeCover = fakeCover; + } + + @Override public int compareTo(MetaData o) { String oUuid = o == null ? null : o.getUuid(); return getUuid().compareTo(oUuid); @@ -371,14 +394,11 @@ public class MetaData implements Cloneable, Comparable { } if (tags != null) { - meta.tags = new ArrayList(); - meta.tags.addAll(tags); + meta.tags = new ArrayList(tags); } + if (resume != null) { - meta.resume = new Chapter(resume.getNumber(), resume.getName()); - for (Paragraph para : resume) { - meta.resume.getParagraphs().add(para); - } + meta.resume = resume.clone(); } return meta;