Bato.to: Fix manga not recognized from different url entries (#8352)

fix url
This commit is contained in:
dngonz 2025-04-04 09:13:43 +02:00 committed by Draff
parent fcb1ff01ad
commit 85c4793096
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Bato.to'
extClass = '.BatoToFactory'
extVersionCode = 49
extVersionCode = 50
isNsfw = true
}

View File

@ -279,7 +279,7 @@ open class BatoTo(
manga.title = infoElement.select("h3").text().removeEntities()
manga.thumbnail_url = document.select("div.attr-cover img")
.attr("abs:src")
manga.url = infoElement.select("h3 a").attr("abs:href")
manga.setUrlWithoutDomain(infoElement.select("h3 a").attr("abs:href"))
return MangasPage(listOf(manga), false)
}
@ -405,7 +405,7 @@ open class BatoTo(
return Jsoup.parse(response.body.string(), response.request.url.toString(), Parser.xmlParser())
.select("channel > item").map { item ->
SChapter.create().apply {
url = item.selectFirst("guid")!!.text()
setUrlWithoutDomain(item.selectFirst("guid")!!.text())
name = item.selectFirst("title")!!.text()
date_upload = parseAltChapterDate(item.selectFirst("pubDate")!!.text())
}