Update Japscan.kt (#15979)

Fix Referer
Closes #15749
This commit is contained in:
Rajh 2023-04-07 16:22:11 +02:00 committed by GitHub
parent 2fa5188236
commit 80ae017310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Japscan'
pkgNameSuffix = 'fr.japscan'
extClass = '.Japscan'
extVersionCode = 39
extVersionCode = 40
}
apply from: "$rootDir/common.gradle"

View File

@ -68,6 +68,9 @@ class Japscan : ConfigurableSource, ParsedHttpSource() {
}
private fun chapterListPref() = preferences.getString(SHOW_SPOILER_CHAPTERS, "hide")
override fun headersBuilder() = super.headersBuilder()
.add("referer", "$baseUrl/")
// Popular
override fun popularMangaRequest(page: Int): Request {