// There is no chapters on e621, just pagination...
Story story = super.process(url, pg);
- Chapter only = new Chapter(1, null);
+ Chapter only = new Chapter(1, "");
for (Chapter chap : story) {
only.getParagraphs().addAll(chap.getParagraphs());
}
} else if (langLine.equalsIgnoreCase("French")) {
lang = "fr";
} else {
- // TODO find the code?
+ // TODO find the code for other languages?
lang = langLine;
}
}
try {
pages.add(new URL(line));
} catch (MalformedURLException e) {
- Instance.getTraceHandler().error(
- new IOException(
- "Parsing error, a link is not correctly parsed: "
- + line, e));
+ Instance.getInstance().getTraceHandler()
+ .error(new IOException("Parsing error, a link is not correctly parsed: " + line, e));
}
}
}
StringBuilder builder = new StringBuilder();
for (URL page : pages) {
- InputStream pageIn = Instance.getCache().open(page, this, false);
+ InputStream pageIn = Instance.getInstance().getCache().open(page, this, false);
try {
String link = getKeyLine(pageIn, "id=\"img\"", "src=\"", "\"");
if (link != null && !link.isEmpty()) {