Add a new source to WpMangaReader (closes #10651). (#10683)

This commit is contained in:
Alessandro Jean 2022-02-04 07:27:13 -03:00 committed by GitHub
parent 05c2a47a17
commit d418d46b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package eu.kanade.tachiyomi.extension.pt.mangaschan
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class MangasChan : WPMangaReader(
"Mangás Chan",
"https://mangaschan.com",
"pt-BR",
dateFormat = SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
.addNetworkInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override val altName = "Nome alternativo: "
}

View File

@ -24,6 +24,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator {
SingleLang("MangaKita", "https://mangakita.net", "id", overrideVersionCode = 1),
SingleLang("Gabut Scans", "https://gabutscans.com", "id"),
SingleLang("Graze Scans", "https://grazescans.com", "en", overrideVersionCode = 2),
SingleLang("Mangás Chan", "https://mangaschan.com", "pt-BR", className = "MangasChan"),
SingleLang("Martial Manga", "https://martialmanga.com", "es"),
SingleLang("Ngomik", "https://ngomik.net", "id", overrideVersionCode = 1),
SingleLang("Sekaikomik", "https://www.sekaikomik.site", "id", isNsfw = true, overrideVersionCode = 8),