Mangapill: Add referer header (#16486)

* Add referer header

* Update src/en/mangapill/src/eu/kanade/tachiyomi/extension/en/mangapill/MangaPill.kt

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

* Update src/en/mangapill/src/eu/kanade/tachiyomi/extension/en/mangapill/MangaPill.kt

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>

* Update MangaPill.kt

slight move

---------

Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
This commit is contained in:
Secozzi 2023-05-19 12:15:14 +02:00 committed by GitHub
parent 62897219ff
commit 57c5e0c896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaPill'
pkgNameSuffix = 'en.mangapill'
extClass = '.MangaPill'
extVersionCode = 7
extVersionCode = 8
isNsfw = true
}

View File

@ -21,7 +21,8 @@ class MangaPill : ParsedHttpSource() {
override val lang = "en"
override val supportsLatest = true
override val client: OkHttpClient = network.cloudflareClient
override fun headersBuilder() = super.headersBuilder().add("Referer", "$baseUrl/")
override fun popularMangaRequest(page: Int): Request = latestUpdatesRequest(page)
override fun latestUpdatesRequest(page: Int): Request {