X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=supported%2FEHentai.java;h=3c734329e3bac03e456665958b6699cc623b3ff8;hb=9bd801bfc6a10e5298cdec6e48ca0506ecdfde53;hp=67585cd477f90a257acd94c9d28c67bac07575f7;hpb=0fc81e6465aa9c1f1dfc19b532082220d609768a;p=fanfix.git diff --git a/supported/EHentai.java b/supported/EHentai.java index 67585cd..3c73432 100644 --- a/supported/EHentai.java +++ b/supported/EHentai.java @@ -54,7 +54,7 @@ class EHentai extends BasicSupport_Deprecated { // 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()); } @@ -118,7 +118,7 @@ class EHentai extends BasicSupport_Deprecated { } else if (langLine.equalsIgnoreCase("French")) { lang = "fr"; } else { - // TODO find the code? + // TODO find the code for other languages? lang = langLine; } } @@ -255,10 +255,8 @@ class EHentai extends BasicSupport_Deprecated { 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)); } } } @@ -272,7 +270,7 @@ class EHentai extends BasicSupport_Deprecated { 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()) {