git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try +1
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
supported
/
E621.java
diff --git
a/src/be/nikiroo/fanfix/supported/E621.java
b/src/be/nikiroo/fanfix/supported/E621.java
index 44621b9a79fe31ea10773dd6ca3d88b158a092e6..c57f8fd2cfbe0c565f15904cc5873a085acbb8b3 100644
(file)
--- a/
src/be/nikiroo/fanfix/supported/E621.java
+++ b/
src/be/nikiroo/fanfix/supported/E621.java
@@
-58,6
+58,8
@@
class E621 extends BasicSupport_Deprecated {
meta.setCover(getCover(source, reset(in)));
meta.setFakeCover(true);
meta.setCover(getCover(source, reset(in)));
meta.setFakeCover(true);
+ System.out.println("Meta from e621: "+meta);
+
return meta;
}
return meta;
}
@@
-130,12
+132,12
@@
class E621 extends BasicSupport_Deprecated {
}
private Image getCover(URL source, InputStream in) throws IOException {
}
private Image getCover(URL source, InputStream in) throws IOException {
- // No cover on searches (/post/)
- if (isSearch(source))
- return null;
+ URL urlForCover = source;
+ if (isPool(source)) {
+ urlForCover = new URL(source.toString() + "?page=1");
+ }
- String images = getChapterContent(new URL(source.toString() + "?page="
- + 1), in, 1, null);
+ String images = getChapterContent(urlForCover, in, 1, null);
if (!images.isEmpty()) {
int pos = images.indexOf("<br/>");
if (pos >= 0) {
if (!images.isEmpty()) {
int pos = images.indexOf("<br/>");
if (pos >= 0) {