Fix BlackoutComics selectors (#1547)
* Fix CSS selectors * Remove optional manga title Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com> * Remove optional manga datails title Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com> --------- Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
This commit is contained in:
parent
79d24a894a
commit
76bd3bb892
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Blackout Comics'
|
extName = 'Blackout Comics'
|
||||||
extClass = '.BlackoutComics'
|
extClass = '.BlackoutComics'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,8 @@ class BlackoutComics : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun popularMangaFromElement(element: Element) = SManga.create().apply {
|
override fun popularMangaFromElement(element: Element) = SManga.create().apply {
|
||||||
setUrlWithoutDomain(element.attr("href"))
|
setUrlWithoutDomain(element.attr("href"))
|
||||||
thumbnail_url = element.selectFirst("img")?.absUrl("src")
|
thumbnail_url = element.selectFirst("img:not(.hidden)")?.absUrl("src")
|
||||||
title = element.selectFirst("p, span.text-comic")?.text() ?: "Manga"
|
title = element.selectFirst("p:not(.hidden), span.text-comic")!!.text()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun popularMangaNextPageSelector() = null
|
override fun popularMangaNextPageSelector() = null
|
||||||
|
@ -97,8 +97,8 @@ class BlackoutComics : ParsedHttpSource() {
|
||||||
// =========================== Manga Details ============================
|
// =========================== Manga Details ============================
|
||||||
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
|
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
|
||||||
val row = document.selectFirst("section > div.container > div.row")!!
|
val row = document.selectFirst("section > div.container > div.row")!!
|
||||||
thumbnail_url = row.selectFirst("img")?.absUrl("src")
|
thumbnail_url = row.selectFirst("img:not(.hidden)")?.absUrl("src")
|
||||||
title = row.selectFirst("div.trailer-content > h2")?.text() ?: "Manga"
|
title = row.selectFirst("div.trailer-content > h2:not(.hidden)")!!.text()
|
||||||
|
|
||||||
with(row.selectFirst("div.trailer-content:has(h3:containsOwn(Detalhes))")!!) {
|
with(row.selectFirst("div.trailer-content:has(h3:containsOwn(Detalhes))")!!) {
|
||||||
println(outerHtml())
|
println(outerHtml())
|
||||||
|
@ -153,7 +153,7 @@ class BlackoutComics : ParsedHttpSource() {
|
||||||
|
|
||||||
// =============================== Pages ================================
|
// =============================== Pages ================================
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
return document.select("div.chapter-image canvas").mapIndexed { index, item ->
|
return document.select("div.chapter-image-ofc canvas").mapIndexed { index, item ->
|
||||||
Page(index, "", item.absUrl("data-src"))
|
Page(index, "", item.absUrl("data-src"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue