Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Commit

Permalink
improve mangashironet
Browse files Browse the repository at this point in the history
  • Loading branch information
raulhaag committed Nov 12, 2018
1 parent 2b3f467 commit 2374759
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public String getImageFrom(Chapter chapter, int page) throws Exception {
@Override
public void chapterInit(Chapter chapter) throws Exception {
String src = getNavigatorAndFlushParameters().get(HOST + chapter.getPath());
src = getFirstMatch("<div id=\"readerarea\">([\\s\\S]+?</a>)</p>", src,
src = getFirstMatch("<div id=\"readerarea\">([\\s\\S]+?</a>)<[^a]", src,
context.getString(R.string.error));
ArrayList<String> images = getAllMatch("href=\"(.+?)\"", src);
chapter.setPages(images.size());
Expand Down

0 comments on commit 2374759

Please sign in to comment.