IkigaiMangas: Fix page selector (#3086)
* update domain and fix pages * they reenable the domain * add missing cookie
This commit is contained in:
parent
76faf0ab3d
commit
51dba16677
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Ikigai Mangas'
|
extName = 'Ikigai Mangas'
|
||||||
extClass = '.IkigaiMangas'
|
extClass = '.IkigaiMangas'
|
||||||
extVersionCode = 8
|
extVersionCode = 9
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,13 @@ class IkigaiMangas : HttpSource() {
|
|||||||
|
|
||||||
override val supportsLatest: Boolean = true
|
override val supportsLatest: Boolean = true
|
||||||
|
|
||||||
private val cookieInterceptor = CookieInterceptor(baseUrl.substringAfter("://"), "data-saving" to "0")
|
private val cookieInterceptor = CookieInterceptor(
|
||||||
|
baseUrl.substringAfter("://"),
|
||||||
|
listOf(
|
||||||
|
"data-saving" to "0",
|
||||||
|
"nsfw-mode" to "1",
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
override val client = network.cloudflareClient.newBuilder()
|
override val client = network.cloudflareClient.newBuilder()
|
||||||
.rateLimitHost(baseUrl.toHttpUrl(), 1, 2)
|
.rateLimitHost(baseUrl.toHttpUrl(), 1, 2)
|
||||||
@ -151,7 +157,7 @@ class IkigaiMangas : HttpSource() {
|
|||||||
|
|
||||||
override fun pageListParse(response: Response): List<Page> {
|
override fun pageListParse(response: Response): List<Page> {
|
||||||
val document = response.asJsoup()
|
val document = response.asJsoup()
|
||||||
return document.select("section > div.img > img").mapIndexed { i, element ->
|
return document.select("section div.img > img").mapIndexed { i, element ->
|
||||||
Page(i, imageUrl = element.attr("abs:src"))
|
Page(i, imageUrl = element.attr("abs:src"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user