Fix CertPathValidatorException in Union Mangás. (#2201)

Fix CertPathValidatorException in Union Mangás
This commit is contained in:
Alessandro Jean 2020-02-06 13:21:31 -03:00 committed by GitHub
parent 0e59671851
commit 625f5519df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Union Mangás'
pkgNameSuffix = 'pt.unionmangas'
extClass = '.UnionMangas'
extVersionCode = 9
extVersionCode = 10
libVersion = '1.2'
}

View File

@ -21,14 +21,14 @@ class UnionMangas : ParsedHttpSource() {
override val name = "Union Mangás"
override val baseUrl = "https://unionleitor.top"
override val baseUrl = "http://unionleitor.top"
override val lang = "pt"
override val supportsLatest = true
// Sometimes the site is very slow.
override val client =
override val client: OkHttpClient =
network.cloudflareClient.newBuilder()
.connectTimeout(3, TimeUnit.MINUTES)
.readTimeout(3, TimeUnit.MINUTES)
@ -38,7 +38,7 @@ class UnionMangas : ParsedHttpSource() {
override fun headersBuilder(): Headers.Builder = Headers.Builder()
.add("User-Agent", USER_AGENT)
.add("Origin", baseUrl)
.add("Referer", "$baseUrl/home-nn")
.add("Referer", "$baseUrl/qa")
override fun popularMangaRequest(page: Int): Request {
val pageStr = if (page != 1) "/$page" else ""