Fix force close when no more mangas found
This commit is contained in:
@@ -113,6 +113,10 @@ public class Batoto extends Source {
|
||||
}
|
||||
|
||||
private List<Manga> parseMangasFromHtml(String unparsedHtml) {
|
||||
if (unparsedHtml.contains("No (more) comics found!")) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
Document parsedDocument = Jsoup.parse(unparsedHtml);
|
||||
|
||||
List<Manga> updatedMangaList = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user