", 1);
if (cover != null) {
@@ -156,19 +173,12 @@ 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
- protected List
> getChapters(URL source, InputStream in) {
+ protected List> getChapters(URL source, InputStream in,
+ Progress pg) {
List> urls = new ArrayList>();
@SuppressWarnings("resource")
Scanner scan = new Scanner(in, "UTF-8");
@@ -224,7 +234,8 @@ class Fimfiction extends BasicSupport {
}
@Override
- protected String getChapterContent(URL source, InputStream in, int number) {
+ protected String getChapterContent(URL source, InputStream in, int number,
+ Progress pg) {
return getLine(in, "", 1);
}