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:
peakedshout 2025-04-20 09:27:59 +08:00 committed by Draff
parent ad829436f1
commit 37e0aaeb75
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Jinman Tiantang'
extClass = '.Jinmantiantang'
extVersionCode = 47
extVersionCode = 48
isNsfw = true
}

View File

@ -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)