Buon dua fix (#13278)

* Fixes BuonDua

Updates URL selector for images

* Update BuonDua.kt

* Fixes page index
This commit is contained in:
happywillow0 2022-08-31 12:16:31 -04:00 committed by GitHub
parent 7b011e1edc
commit fc3e6cd9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Buon Dua'
pkgNameSuffix = 'all.buondua'
extClass = '.BuonDua'
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -23,7 +23,7 @@ class BuonDua() : ParsedHttpSource() {
// Latest
override fun latestUpdatesFromElement(element: Element): SManga {
val manga = SManga.create()
manga.thumbnail_url = element.select("img").attr("abs:data-src")
manga.thumbnail_url = element.select("img").attr("abs:src")
manga.title = element.select(".item-content .item-link").text()
manga.setUrlWithoutDomain(element.select(".item-content .item-link").attr("abs:href"))
return manga
@ -94,9 +94,9 @@ class BuonDua() : ParsedHttpSource() {
0 -> document
else -> client.newCall(GET(page.attr("abs:href"))).execute().asJsoup()
}
doc.select(".article-fulltext img").forEachIndexed { i, it ->
val itUrl = it.attr("abs:data-src")
pages.add(Page(i, itUrl, itUrl))
doc.select(".article-fulltext img").forEach { it ->
val itUrl = it.attr("abs:src")
pages.add(Page(pages.size, "", itUrl))
}
}
return pages