Add one Madara source and fix another (#17700)
Add one Madara source and fix another.
This commit is contained in:
parent
14b0c3d6ae
commit
eea542f91d
|
@ -0,0 +1,36 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.pt.cerisescans
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
|
import eu.kanade.tachiyomi.network.GET
|
||||||
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||||
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
|
import okhttp3.OkHttpClient
|
||||||
|
import okhttp3.Request
|
||||||
|
import java.text.SimpleDateFormat
|
||||||
|
import java.util.Locale
|
||||||
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
|
class CeriseScan : Madara(
|
||||||
|
"Cerise Scan",
|
||||||
|
"https://cerisescan.com/home1",
|
||||||
|
"pt-BR",
|
||||||
|
SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR")),
|
||||||
|
) {
|
||||||
|
|
||||||
|
// Name changed from 'Cerise Scans' to 'Cerise Scan'
|
||||||
|
override val id: Long = 8629915907358523454
|
||||||
|
|
||||||
|
override val client: OkHttpClient = super.client.newBuilder()
|
||||||
|
.rateLimit(1, 2, TimeUnit.SECONDS)
|
||||||
|
.build()
|
||||||
|
|
||||||
|
override val useNewChapterEndpoint = true
|
||||||
|
|
||||||
|
override fun mangaDetailsRequest(manga: SManga): Request {
|
||||||
|
return GET(baseUrl + manga.url.removePrefix("/home1"), headers)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun chapterListRequest(manga: SManga): Request {
|
||||||
|
return GET(baseUrl + manga.url.removePrefix("/home1"), headers)
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
package eu.kanade.tachiyomi.extension.pt.cerisescans
|
package eu.kanade.tachiyomi.extension.pt.ghostscan
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||||
|
@ -7,11 +7,11 @@ import java.text.SimpleDateFormat
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
class CeriseScans : Madara(
|
class GhostScan : Madara(
|
||||||
"Cerise Scans",
|
"Ghost Scan",
|
||||||
"https://cerisescans.com",
|
"https://ghostscan.com.br",
|
||||||
"pt-BR",
|
"pt-BR",
|
||||||
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")),
|
SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR")),
|
||||||
) {
|
) {
|
||||||
|
|
||||||
override val client: OkHttpClient = super.client.newBuilder()
|
override val client: OkHttpClient = super.client.newBuilder()
|
|
@ -70,7 +70,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("CAT-translator", "https://cats-translator.com/manga", "th", className = "CatTranslator", overrideVersionCode = 2),
|
SingleLang("CAT-translator", "https://cats-translator.com/manga", "th", className = "CatTranslator", overrideVersionCode = 2),
|
||||||
SingleLang("Cat300", "https://cat300.com", "th", isNsfw = true, className = "Cat300", overrideVersionCode = 1),
|
SingleLang("Cat300", "https://cat300.com", "th", isNsfw = true, className = "Cat300", overrideVersionCode = 1),
|
||||||
SingleLang("CatOnHeadTranslations", "https://catonhead.com", "en", overrideVersionCode = 2),
|
SingleLang("CatOnHeadTranslations", "https://catonhead.com", "en", overrideVersionCode = 2),
|
||||||
SingleLang("Cerise Scans", "https://cerisescans.com", "pt-BR", overrideVersionCode = 5),
|
SingleLang("Cerise Scan", "https://cerisescan.com/home1", "pt-BR", isNsfw = true, overrideVersionCode = 6),
|
||||||
SingleLang("Chibi Manga", "https://www.cmreader.info", "en", overrideVersionCode = 1),
|
SingleLang("Chibi Manga", "https://www.cmreader.info", "en", overrideVersionCode = 1),
|
||||||
SingleLang("Clover Manga", "https://clover-manga.com", "tr", overrideVersionCode = 2),
|
SingleLang("Clover Manga", "https://clover-manga.com", "tr", overrideVersionCode = 2),
|
||||||
SingleLang("Coco Rip", "https://cocorip.net", "es"),
|
SingleLang("Coco Rip", "https://cocorip.net", "es"),
|
||||||
|
@ -130,6 +130,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("GeassToon", "https://geasstoon.com", "tr"),
|
SingleLang("GeassToon", "https://geasstoon.com", "tr"),
|
||||||
SingleLang("Gekkou Hentai", "https://hentai.gekkouscans.com.br", "pt-BR", isNsfw = true),
|
SingleLang("Gekkou Hentai", "https://hentai.gekkouscans.com.br", "pt-BR", isNsfw = true),
|
||||||
SingleLang("Gekkou Scans", "https://gekkou.com.br", "pt-BR", isNsfw = true, pkgName = "gekkouscan"),
|
SingleLang("Gekkou Scans", "https://gekkou.com.br", "pt-BR", isNsfw = true, pkgName = "gekkouscan"),
|
||||||
|
SingleLang("Ghost Scan", "https://ghostscan.com.br", "pt-BR", isNsfw = true),
|
||||||
SingleLang("Girls Love Manga!", "https://glmanga.com", "en", isNsfw = true, className = "GirlsLoveManga"),
|
SingleLang("Girls Love Manga!", "https://glmanga.com", "en", isNsfw = true, className = "GirlsLoveManga"),
|
||||||
SingleLang("Glory Manga", "https://glorymanga.com", "tr"),
|
SingleLang("Glory Manga", "https://glorymanga.com", "tr"),
|
||||||
SingleLang("Good Girls Scan", "https://goodgirls.moe", "en", isNsfw = true),
|
SingleLang("Good Girls Scan", "https://goodgirls.moe", "en", isNsfw = true),
|
||||||
|
|
Loading…
Reference in New Issue