GUI search, step 2
[fanfix.git] / src / be / nikiroo / fanfix / searchable / Fanfiction.java
index d25153eb28f6921ea7c4bc64410f384b6e812dd7..f392bf15cd09a4da7a8877db42dd924b48f3f194 100644 (file)
@@ -260,12 +260,15 @@ class Fanfiction extends BasicSearchable {
                        MetaData meta = new MetaData();
                        meta.setImageDocument(false);
                        meta.setSource(getType().getSourceName());
+                       meta.setPublisher(getType().getSourceName());
+                       meta.setType(getType().toString());
 
                        // Title, URL, Cover
                        Element stitle = story.getElementsByClass("stitle").first();
                        if (stitle != null) {
                                meta.setTitle(stitle.text());
                                meta.setUrl(stitle.absUrl("href"));
+                               meta.setUuid(meta.getUrl());
                                Element cover = stitle.getElementsByTag("img").first();
                                if (cover != null) {
                                        // note: see data-original if needed?