Fix exception thrown when Batoto search is empty

This commit is contained in:
len
2016-07-16 17:25:22 +02:00
parent e16bf0698e
commit f7bb356abd
3 changed files with 6 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ class Batoto(context: Context, override val id: Int) : ParsedOnlineSource(contex
}
}
override fun popularMangaSelector() = "tr:not([id]):not([class])"
override fun popularMangaSelector() = "tr:has(a)"
override fun popularMangaFromElement(element: Element, manga: Manga) {
element.select("a[href^=http://bato.to]").first().let {