VCPVMP: Fix pages don't load (#6966)

* fix pages not all loading

* enhance pageListSelector VerComics
This commit is contained in:
dngonz 2025-01-05 01:36:42 +01:00 committed by Draff
parent d9822c7ef5
commit b7409c8efd
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
1 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,8 @@ 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 > figure img:not(noscript img)," +
"div.wp-content > img, div.wp-content > p img"
override fun pageListParse(document: Document): List<Page> = document.select(pageListSelector)
.mapIndexed { i, img -> Page(i, imageUrl = img.imgAttr()) }