X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsupported%2FE621.java;h=a566017904cf75fc7c532bcb0539068797cbd002;hb=a8a7222faea33867e416f2bf5cbb91378b1c2fbe;hp=a019d0ced94881236adb246c517976b75cab737d;hpb=55d4513cabcb14396c5500613e94dee93415c7d9;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/supported/E621.java b/src/be/nikiroo/fanfix/supported/E621.java index a019d0c..a566017 100644 --- a/src/be/nikiroo/fanfix/supported/E621.java +++ b/src/be/nikiroo/fanfix/supported/E621.java @@ -7,7 +7,6 @@ import java.net.URL; import java.net.URLDecoder; import java.util.AbstractMap; import java.util.ArrayList; -import java.util.Collections; import java.util.Date; import java.util.LinkedList; import java.util.List; @@ -61,7 +60,7 @@ class E621 extends BasicSupport { meta.setTitle(getTitle()); meta.setAuthor(getAuthor()); - meta.setDate(getDate()); + meta.setDate(bsHelper.formatDate(getDate())); meta.setTags(getTags()); meta.setSource(getType().getSourceName()); meta.setUrl(getSource().toString()); @@ -82,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(); } @@ -98,7 +102,7 @@ class E621 extends BasicSupport { if (isPool(getSource())) { Element el = getSourceNode().getElementById("description"); if (el != null) { - return el.text(); + return el.html(); } } @@ -180,6 +184,9 @@ class E621 extends BasicSupport { // Can be NULL if filtered // When the value is NULL, we get an exception // but the "has" method still returns true + Instance.getInstance().getTraceHandler() + .error("Cannot get image for chapter " + number + " of " + + getSource()); } }