Add two new sources to Madara. (#11748)

This commit is contained in:
Alessandro Jean 2022-05-05 19:37:56 -03:00 committed by GitHub
parent 6afdc59180
commit b798f17039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,22 @@
package eu.kanade.tachiyomi.extension.pt.covenscan
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class CovenScan : Madara(
"Coven Scan",
"https://covenscan.com",
"pt-BR",
SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override val useNewChapterEndpoint = true
}

View File

@ -0,0 +1,24 @@
package eu.kanade.tachiyomi.extension.pt.helascan
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class HelaScan : Madara(
"Hela Scan",
"https://helascan.com",
"pt-BR",
SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override val useNewChapterEndpoint = true
override val mangaDetailsSelectorTag = ""
}

View File

@ -75,6 +75,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Comictoon", "https://comictoonthaith-new.com", "th", isNsfw = true),
SingleLang("Cookie Kiara", "https://18.kiara.cool", "en", isNsfw = true),
SingleLang("CopyPasteScan", "https://copypastescan.xyz", "es", overrideVersionCode = 1),
SingleLang("Coven Scan", "https://covenscan.com", "pt-BR", isNsfw = true),
SingleLang("Cronos Scan", "https://cronosscan.net", "pt-BR", overrideVersionCode = 1),
SingleLang("DarkYue Realm", "https://darkyuerealm.site/web", "pt-BR", pkgName = "darkyurealm", overrideVersionCode = 4),
SingleLang("Decadence Scans", "https://reader.decadencescans.com", "en", isNsfw = true, overrideVersionCode = 2),
@ -120,6 +121,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Harimanga", "https://harimanga.com", "en", overrideVersionCode = 1),
SingleLang("Hattori Manga", "https://hattorimanga.com", "tr", isNsfw = true),
SingleLang("Hayalistic", "https://hayalistic.com", "tr"),
SingleLang("Hela Scan", "https://helascan.com", "pt-BR", isNsfw = true),
SingleLang("Hentai CB", "https://hentaicb.top", "vi", isNsfw = true, overrideVersionCode = 1, pkgName = "hentaicube"),
SingleLang("Hentai Manga", "https://hentaimanga.me", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Hentai Teca", "https://hentaiteca.net", "pt-BR", isNsfw = true, overrideVersionCode = 1),