LxManga: Update headers (#10886)

This commit is contained in:
are-are-are 2025-10-05 03:47:30 +07:00 committed by Draff
parent 0ac4b785aa
commit e114e5a257
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'LXManga' extName = 'LXManga'
extClass = '.LxHentai' extClass = '.LxHentai'
extVersionCode = 23 extVersionCode = 24
isNsfw = true isNsfw = true
} }

View File

@ -43,7 +43,9 @@ class LxHentai : ParsedHttpSource(), ConfigurableSource {
.rateLimit(3) .rateLimit(3)
.build() .build()
override fun headersBuilder(): Headers.Builder = super.headersBuilder().add("Referer", baseUrl) override fun headersBuilder(): Headers.Builder = super.headersBuilder()
.add("Referer", "$baseUrl/")
.add("Origin", baseUrl)
override fun popularMangaRequest(page: Int) = override fun popularMangaRequest(page: Int) =
searchMangaRequest(page, "", FilterList(SortBy(3))) searchMangaRequest(page, "", FilterList(SortBy(3)))