git://git.nikiroo.be
/
nikiroo-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d2b032
)
fix e621 descriptions
author
Niki Roo
<niki@nikiroo.be>
Sun, 17 May 2020 20:36:33 +0000
(22:36 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Sun, 17 May 2020 20:36:33 +0000
(22:36 +0200)
src/be/nikiroo/fanfix/supported/E621.java
patch
|
blob
|
blame
|
history
diff --git
a/src/be/nikiroo/fanfix/supported/E621.java
b/src/be/nikiroo/fanfix/supported/E621.java
index adf8d28c8b2853a01fddc02b239346bec9f28a0e..a566017904cf75fc7c532bcb0539068797cbd002 100644
(file)
--- 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();
protected String getDesc() throws IOException {
if (isSearchOrSet(getSource())) {
StringBuilder builder = new StringBuilder();
+ builder.append("<div>");
builder.append("A collection of images from ")
builder.append("A collection of images from ")
- .append(getSource().getHost()).append("\n") //
- .append("\tTime of creation: "
+ .append(getSource().getHost()) //
+ .append("<br/>\n") //
+ .append(" Time of creation: "
+ StringUtils.fromTime(new Date().getTime()))
+ StringUtils.fromTime(new Date().getTime()))
- .append("\n") //
- .append("
\
tTags: ");//
+ .append("
<br/>
\n") //
+ .append("
tTags: ");//
for (String tag : getTags()) {
for (String tag : getTags()) {
- builder.append("\t\t").append(tag);
+ builder.append(
+ "\n<br/> ")
+ .append(tag);
}
}
+ builder.append("\n</div>");
return builder.toString();
}
return builder.toString();
}
@@
-97,7
+102,7
@@
class E621 extends BasicSupport {
if (isPool(getSource())) {
Element el = getSourceNode().getElementById("description");
if (el != null) {
if (isPool(getSource())) {
Element el = getSourceNode().getElementById("description");
if (el != null) {
- return el.
text
();
+ return el.
html
();
}
}
}
}