TruyenQQ - add referer header (#2673)

TruyenQQ - add referer header
This commit is contained in:
Mike 2020-04-14 15:03:19 -04:00 committed by GitHub
parent 526ec07a4b
commit e106314621
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 {
appName = 'Tachiyomi: TruyenQQ'
pkgNameSuffix = 'vi.truyenqq'
extClass = '.TruyenQQ'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -4,6 +4,7 @@ import android.net.Uri
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.*
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.Headers
import okhttp3.OkHttpClient
import okhttp3.Request
import java.util.*
@ -24,6 +25,9 @@ class TruyenQQ : ParsedHttpSource() {
.followRedirects(true)
.build()!!
override fun headersBuilder(): Headers.Builder {
return super.headersBuilder().add("Referer", baseUrl)
}
// Popular
override fun popularMangaRequest(page: Int): Request {