From: Niki Roo Date: Sun, 17 May 2020 20:36:33 +0000 (+0200) Subject: fix e621 descriptions X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=a8a7222faea33867e416f2bf5cbb91378b1c2fbe;p=nikiroo-utils.git fix e621 descriptions --- diff --git a/src/be/nikiroo/fanfix/supported/E621.java b/src/be/nikiroo/fanfix/supported/E621.java index adf8d28..a566017 100644 --- a/src/be/nikiroo/fanfix/supported/E621.java +++ b/src/be/nikiroo/fanfix/supported/E621.java @@ -81,15 +81,20 @@ class E621 extends BasicSupport { protected String getDesc() throws IOException { if (isSearchOrSet(getSource())) { StringBuilder builder = new StringBuilder(); + builder.append("
"); builder.append("A collection of images from ") - .append(getSource().getHost()).append("\n") // - .append("\tTime of creation: " + .append(getSource().getHost()) // + .append("
\n") // + .append("    Time of creation: " + StringUtils.fromTime(new Date().getTime())) - .append("\n") // - .append("\tTags: ");// + .append("
\n") // + .append("    tTags: ");// for (String tag : getTags()) { - builder.append("\t\t").append(tag); + builder.append( + "\n
        ") + .append(tag); } + builder.append("\n
"); return builder.toString(); } @@ -97,7 +102,7 @@ class E621 extends BasicSupport { if (isPool(getSource())) { Element el = getSourceNode().getElementById("description"); if (el != null) { - return el.text(); + return el.html(); } }