Fixhc including related images in gallery (#10064)

* Update build.gradle

* Update HentaiCosplay.kt

Due to HC website changes they now had low res unrelated images appended to the list of images. They will now be excluded from the gallery.
This commit is contained in:
meatballsaretasty 2025-08-09 04:54:55 -04:00 committed by Draff
parent 7a3053be7c
commit 2f21fcf8f7
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Hentai Cosplay'
extClass = '.HentaiCosplay'
extVersionCode = 5
extVersionCode = 6
isNsfw = true
}

View File

@ -209,7 +209,7 @@ class HentaiCosplay : HttpSource() {
override fun pageListParse(response: Response): List<Page> {
val document = response.asJsoup()
return document.select("amp-img[src*=upload]")
return document.select("amp-img[src*=upload]:not(.related-thumbnail)")
.mapIndexed { index, element ->
Page(
index = index,