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:
parent
7a3053be7c
commit
2f21fcf8f7
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Hentai Cosplay'
|
||||
extClass = '.HentaiCosplay'
|
||||
extVersionCode = 5
|
||||
extVersionCode = 6
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user