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.Instance;
import be.nikiroo.fanfix.data.MetaData;
+import be.nikiroo.utils.Image;
import be.nikiroo.utils.Progress;
import be.nikiroo.utils.StringUtils;
return getLine(in, "class=\"description-text bbcode\"", 1);
}
- private BufferedImage getCover(InputStream in) {
+ private Image getCover(InputStream in) {
// Note: the 'og:image' is the SMALL cover, not the full version
String cover = getLine(in, "class=\"story_container__story_image\"", 1);
if (cover != null) {
final URL value = new URL("http://www.fimfiction.net"
+ line);
urls.add(new Entry<String, URL>() {
+ @Override
public URL setValue(URL value) {
return null;
}
+ @Override
public String getKey() {
return key;
}
+ @Override
public URL getValue() {
return value;
}
});
} catch (MalformedURLException e) {
- Instance.syserr(e);
+ Instance.getTraceHandler().error(e);
}
}
}