getting the correct tags now (#6986)

This commit is contained in:
OncePunchedMan 2021-05-12 00:28:39 +02:00 committed by GitHub
parent af58998ed1
commit 1db6f31ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Bato.to'
pkgNameSuffix = 'all.batoto'
extClass = '.BatoToFactory'
extVersionCode = 8
extVersionCode = 9
libVersion = '1.2'
containsNsfw = true
}

View File

@ -66,6 +66,7 @@ open class BatoTo(
override fun popularMangaFromElement(element: Element) = latestUpdatesFromElement(element)
override fun popularMangaNextPageSelector() = latestUpdatesNextPageSelector()
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
return if (query.isNotBlank()) {
GET("$baseUrl/search?word=$query&page=$page")
@ -186,9 +187,7 @@ open class BatoTo(
val chapter = SChapter.create()
val urlElement = element.select("a.chapt")
val group = element.select("div.extra > a:not(.ps-3)").text()
val time = element.select("i").text()
.replace("a ", "1 ")
.replace("an ", "1 ")
val time = element.select("div.extra > i.ps-3").text()
chapter.setUrlWithoutDomain(urlElement.attr("href"))
chapter.name = urlElement.text()
if (group != "") {