package be.nikiroo.fanfix.supported;
-import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import be.nikiroo.fanfix.data.Chapter;
import be.nikiroo.fanfix.data.MetaData;
import be.nikiroo.fanfix.data.Story;
+import be.nikiroo.utils.Image;
import be.nikiroo.utils.Progress;
import be.nikiroo.utils.StringUtils;
*
* @author niki
*/
-class EHentai extends BasicSupport {
+class EHentai extends BasicSupport_Deprecated {
@Override
public String getSourceName() {
return "e-hentai.org";
return true;
}
- private BufferedImage getCover(URL source, InputStream in)
- throws IOException {
- BufferedImage author = null;
+ private Image getCover(URL source, InputStream in) {
+ Image author = null;
String coverLine = getKeyLine(in, "<div id=\"gd1\"", " url(", ")");
if (coverLine != null) {
coverLine = StringUtils.unhtml(coverLine).trim();
return tags;
}
- private String getTitle(InputStream in) throws IOException {
+ private String getTitle(InputStream in) {
String siteName = " - E-Hentai Galleries";
String title = getLine(in, "<title>", 0);
final String key = Integer.toString(i + 1);
final URL value = new URL(source.toString() + "?p=" + i);
urls.add(new Entry<String, URL>() {
+ @Override
public URL setValue(URL value) {
return null;
}
+ @Override
public URL getValue() {
return value;
}
+ @Override
public String getKey() {
return key;
}
try {
pages.add(new URL(line));
} catch (MalformedURLException e) {
- Instance.syserr(new IOException(
- "Parsing error, a link is not correctly parsed: "
- + line, e));
+ Instance.getTraceHandler().error(
+ new IOException(
+ "Parsing error, a link is not correctly parsed: "
+ + line, e));
}
}
}