parent
303f6d7737
commit
4d291d571d
|
@ -3,7 +3,7 @@ ext {
|
||||||
extClass = '.InfernalVoidScans'
|
extClass = '.InfernalVoidScans'
|
||||||
themePkg = 'mangathemesia'
|
themePkg = 'mangathemesia'
|
||||||
baseUrl = 'https://hivetoon.com'
|
baseUrl = 'https://hivetoon.com'
|
||||||
overrideVersionCode = 7
|
overrideVersionCode = 8
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -10,6 +10,19 @@ class InfernalVoidScans : MangaThemesia(
|
||||||
"https://hivetoon.com",
|
"https://hivetoon.com",
|
||||||
"en",
|
"en",
|
||||||
) {
|
) {
|
||||||
|
override val client = super.client.newBuilder()
|
||||||
|
.addInterceptor { chain ->
|
||||||
|
val request = chain.request()
|
||||||
|
val headers = request.headers.newBuilder()
|
||||||
|
.set("Cache-Control", "max-age=0")
|
||||||
|
.build()
|
||||||
|
chain.proceed(request.newBuilder().headers(headers).build())
|
||||||
|
}
|
||||||
|
.build()
|
||||||
|
|
||||||
|
override fun headersBuilder() = super.headersBuilder()
|
||||||
|
.set("Cache-Control", "max-age=0")
|
||||||
|
|
||||||
override val pageSelector = "div#readerarea > p > img"
|
override val pageSelector = "div#readerarea > p > img"
|
||||||
|
|
||||||
override val hasProjectPage = true
|
override val hasProjectPage = true
|
||||||
|
|
Loading…
Reference in New Issue