Fix Mangastop: adding headers (#11724)

* add headers

* bump version code
This commit is contained in:
Felipe Ávila 2025-11-21 19:25:16 -03:00 committed by Draff
parent 0bfc8ce9ae
commit 4c6b86973c
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.MangaStop'
themePkg = 'mangathemesia'
baseUrl = 'https://mangastop.net'
overrideVersionCode = 0
overrideVersionCode = 1
isNsfw = false
}

View File

@ -11,6 +11,10 @@ class MangaStop : MangaThemesia(
"pt-BR",
dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("pt", "BR")),
) {
override fun headersBuilder() = super.headersBuilder()
.set("Referer", "$baseUrl/")
.set("Accept", "application/xhtml+xml")
override val client = super.client.newBuilder()
.rateLimit(3)
.build()