Wordcount (including UI), date of creation
[nikiroo-utils.git] / src / be / nikiroo / fanfix / supported / InfoReader.java
index c23024059dcae1b4dc8fe6b20b3f9a982f2212ae..9372eddfebb44c85a336c97fef578bbf972b0e5f 100644 (file)
@@ -54,6 +54,12 @@ public class InfoReader {
                meta.setImageDocument(getInfoTagBoolean(in, "IMAGES_DOCUMENT", false));
                meta.setCover(BasicSupport.getImage(null, sourceInfoFile,
                                getInfoTag(in, "COVER")));
+               try {
+                       meta.setWords(Long.parseLong(getInfoTag(in, "WORDCOUNT")));
+               } catch (NumberFormatException e) {
+                       meta.setWords(0);
+               }
+               meta.setCreationDate(getInfoTag(in, "CREATION_DATE"));
 
                if (meta.getCover() == null) {
                        meta.setCover(BasicSupport.getDefaultCover(meta.getSubject()));