VerComics: Add pages selector (#9724)

add selector
This commit is contained in:
kanoou 2025-07-20 04:57:14 -05:00 committed by Draff
parent 143e964708
commit 208168943c
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 4 additions and 3 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 1
baseVersionCode = 2

View File

@ -118,8 +118,9 @@ abstract class VerComics(
protected open val pageListSelector =
"div.wp-content p > img:not(noscript img), " +
"div.wp-content div#lector > img:not(noscript img), " +
"div.wp-content > figure img:not(noscript img)," +
"div.wp-content > img, div.wp-content > p img"
"div.wp-content > figure img:not(noscript img), " +
"div.wp-content > img, div.wp-content > p img, " +
"div.post-imgs > img"
override fun pageListParse(document: Document): List<Page> = document.select(pageListSelector)
.mapIndexed { i, img -> Page(i, imageUrl = img.imgAttr()) }