", 0);
if (line != null) {
int pos = -1;
@@ -141,8 +158,7 @@ class Fimfiction extends BasicSupport {
return getLine(in, "class=\"more_button hidden\"", -1);
}
- @Override
- protected URL getCover(URL url, InputStream in) {
+ private BufferedImage getCover(InputStream in) {
// Note: the 'og:image' is the SMALL cover, not the full version
String cover = getLine(in, "", 1);
if (cover != null) {
@@ -156,15 +172,7 @@ class Fimfiction extends BasicSupport {
}
}
- if (cover != null) {
- try {
- return new URL(cover);
- } catch (MalformedURLException e) {
- Instance.syserr(e);
- }
- }
-
- return null;
+ return getImage(this, null, cover);
}
@Override