Jinman Tiantang: add Referer header (#8527)
* Adding a Referer value to the request header increases the possibility of circumventing Cloudflare. * Adding a Referer value to the request header increases the possibility of circumventing Cloudflare. * Adding a Referer value to the request header increases the possibility of circumventing Cloudflare. * Update src/zh/jinmantiantang/src/eu/kanade/tachiyomi/extension/zh/jinmantiantang/Jinmantiantang.kt --------- Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com>
This commit is contained in:
parent
ad829436f1
commit
37e0aaeb75
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Jinman Tiantang'
|
||||
extClass = '.Jinmantiantang'
|
||||
extVersionCode = 47
|
||||
extVersionCode = 48
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -55,6 +55,10 @@ class Jinmantiantang : ParsedHttpSource(), ConfigurableSource {
|
||||
.apply { interceptors().add(0, updateUrlInterceptor) }
|
||||
.addInterceptor(ScrambledImageInterceptor).build()
|
||||
|
||||
// 添加额外的header增加规避Cloudflare可能性
|
||||
override fun headersBuilder() = super.headersBuilder()
|
||||
.set("Referer", "$baseUrl/")
|
||||
|
||||
// 点击量排序(人气)
|
||||
override fun popularMangaRequest(page: Int): Request {
|
||||
return GET("$baseUrl/albums?o=mv&page=$page", headers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user