Bato.to: Fix manga not recognized from different url entries (#8352)
fix url
This commit is contained in:
parent
fcb1ff01ad
commit
85c4793096
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Bato.to'
|
||||
extClass = '.BatoToFactory'
|
||||
extVersionCode = 49
|
||||
extVersionCode = 50
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -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())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user