Version 1.4.2: fix for images documents...
[fanfix.git] / src / be / nikiroo / fanfix / supported / E621.java
index 40147652932dcc798e29b0aeebe2b35924260979..05d122e68b89efc71587fda628f9b17e720736d7 100644 (file)
@@ -50,6 +50,7 @@ class E621 extends BasicSupport {
                meta.setType(getType().toString());
                meta.setImageDocument(true);
                meta.setCover(getCover(source));
+               meta.setFakeCover(true);
 
                return meta;
        }
@@ -91,7 +92,7 @@ class E621 extends BasicSupport {
                String images = getChapterContent(new URL(source.toString() + "?page="
                                + 1), in, 1);
                if (!images.isEmpty()) {
-                       int pos = images.indexOf('\n');
+                       int pos = images.indexOf("<br/>");
                        if (pos >= 0) {
                                images = images.substring(1, pos - 1);
                                return getImage(this, null, images);
@@ -267,7 +268,7 @@ class E621 extends BasicSupport {
                                                        id = id.substring(0, dotPos);
                                                        builder.append("[");
                                                        builder.append(id);
-                                                       builder.append("]\n");
+                                                       builder.append("]<br/>");
                                                }
                                        }
                                }