Gufengmh: Add referer (#10585)
This commit is contained in:
parent
34afcb7f1a
commit
06030aa7c2
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Gufeng Manhua'
|
||||
pkgNameSuffix = 'zh.gufengmh'
|
||||
extClass = '.Gufengmh'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue