git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Instance: use getInstance()
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
fanfix
/
supported
/
EHentai.java
diff --git
a/src/be/nikiroo/fanfix/supported/EHentai.java
b/src/be/nikiroo/fanfix/supported/EHentai.java
index 67585cd477f90a257acd94c9d28c67bac07575f7..03c1557432194187cb54e2b43e9f4239d42c1668 100644
(file)
--- a/
src/be/nikiroo/fanfix/supported/EHentai.java
+++ b/
src/be/nikiroo/fanfix/supported/EHentai.java
@@
-255,10
+255,8
@@
class EHentai extends BasicSupport_Deprecated {
try {
pages.add(new URL(line));
} catch (MalformedURLException e) {
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) {
StringBuilder builder = new StringBuilder();
for (URL page : pages) {
- InputStream pageIn = Instance.getCache().open(page, this, false);
+ InputStream pageIn = Instance.get
Instance().get
Cache().open(page, this, false);
try {
String link = getKeyLine(pageIn, "id=\"img\"", "src=\"", "\"");
if (link != null && !link.isEmpty()) {
try {
String link = getKeyLine(pageIn, "id=\"img\"", "src=\"", "\"");
if (link != null && !link.isEmpty()) {