Gufengmh: Add referer (#10585)

This commit is contained in:
anenasa 2022-01-27 21:51:47 +08:00 committed by GitHub
parent 34afcb7f1a
commit 06030aa7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Gufeng Manhua'
pkgNameSuffix = 'zh.gufengmh'
extClass = '.Gufengmh'
extVersionCode = 4
extVersionCode = 5
}

View File

@ -8,6 +8,7 @@ import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.Headers
import okhttp3.Request
import okhttp3.Response
import org.jsoup.nodes.Document
@ -19,6 +20,9 @@ class Gufengmh : ParsedHttpSource() {
override val supportsLatest: Boolean = true
override val baseUrl: String = "https://m.gufengmh9.com"
override fun headersBuilder(): Headers.Builder = Headers.Builder()
.add("Referer", baseUrl)
// Popular
override fun popularMangaRequest(page: Int): Request {