Add one Madara source and fix another (#17700)

Add one Madara source and fix another.
This commit is contained in:
Alessandro Jean 2023-08-27 15:16:37 -03:00 committed by GitHub
parent 14b0c3d6ae
commit eea542f91d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 6 deletions

View File

@ -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)
}
}

View File

@ -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.network.interceptor.rateLimit
@ -7,11 +7,11 @@ import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class CeriseScans : Madara(
"Cerise Scans",
"https://cerisescans.com",
class GhostScan : Madara(
"Ghost Scan",
"https://ghostscan.com.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()

View File

@ -70,7 +70,7 @@ class MadaraGenerator : ThemeSourceGenerator {
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("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("Clover Manga", "https://clover-manga.com", "tr", overrideVersionCode = 2),
SingleLang("Coco Rip", "https://cocorip.net", "es"),
@ -130,6 +130,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("GeassToon", "https://geasstoon.com", "tr"),
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("Ghost Scan", "https://ghostscan.com.br", "pt-BR", isNsfw = true),
SingleLang("Girls Love Manga!", "https://glmanga.com", "en", isNsfw = true, className = "GirlsLoveManga"),
SingleLang("Glory Manga", "https://glorymanga.com", "tr"),
SingleLang("Good Girls Scan", "https://goodgirls.moe", "en", isNsfw = true),