SheaManga: fix NXDOMAIN error (#10951)

fix error by ignoring tachi dns setting
This commit is contained in:
Riztard Lanthorn 2022-02-27 21:46:25 +07:00 committed by GitHub
parent eb6e3019d5
commit 2a8c5b5997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.extension.id.sheamanga
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream
import okhttp3.Dns
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
@ -19,6 +20,7 @@ class SheaManga : WPMangaStream(
.connectTimeout(10, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS)
.addNetworkInterceptor(rateLimitInterceptor)
.dns(Dns.SYSTEM)
.build()
override val hasProjectPage = true

View File

@ -30,7 +30,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
SingleLang("MangaIndonesia", "https://mangaindonesia.net", "id"),
SingleLang("GoGoManga", "https://gogomanga.org", "en"),
SingleLang("GURU Komik", "https://gurukomik.com", "id"),
SingleLang("Shea Manga", "http://sheamanga.my.id", "id", overrideVersionCode = 2),
SingleLang("Shea Manga", "http://sheamanga.my.id", "id", overrideVersionCode = 3),
SingleLang("Komik AV", "https://komikav.com", "id", overrideVersionCode = 1),
SingleLang("Komik Cast", "https://komikcast.com", "id", overrideVersionCode = 9),
SingleLang("West Manga", "https://westmanga.info", "id", overrideVersionCode = 1),