This commit is contained in:
inorichi 2016-01-19 21:07:32 +01:00
parent 111ec5541f
commit 0332d8dd79

View file

@ -228,13 +228,9 @@ public class Mangafox extends Source {
Elements pageUrlElements = parsedDocument.select("select.m").first().select("option:not([value=0])"); Elements pageUrlElements = parsedDocument.select("select.m").first().select("option:not([value=0])");
String baseUrl = parsedDocument.select("div#series a").first().attr("href").replace("1.html", ""); String baseUrl = parsedDocument.select("div#series a").first().attr("href").replace("1.html", "");
int counter = 1;
for (Element pageUrlElement : pageUrlElements) { for (Element pageUrlElement : pageUrlElements) {
if(counter < pageUrlElements.size()) {
pageUrlList.add(baseUrl + pageUrlElement.attr("value") + ".html"); pageUrlList.add(baseUrl + pageUrlElement.attr("value") + ".html");
} }
counter++;
}
return pageUrlList; return pageUrlList;
} }