Add two new sources to Madara (#16989)

* Add two new sources to Madara.

* Add missing trailing comma.
This commit is contained in:
Alessandro Jean 2023-07-02 19:47:57 -03:00 committed by GitHub
parent dd0a128de0
commit 010d7959c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package eu.kanade.tachiyomi.extension.pt.dessertscan
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class DessertScan : Madara(
"Dessert Scan",
"https://cabaredowatame.site",
"pt-BR",
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR")),
) {
override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(1, 2, TimeUnit.SECONDS)
.build()
}

View File

@ -0,0 +1,22 @@
package eu.kanade.tachiyomi.extension.pt.nocturnesummer
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class NocturneSummer : Madara(
"Nocturne Summer",
"https://nocsummer.com.br",
"pt-BR",
SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR")),
) {
override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(1, 2, TimeUnit.SECONDS)
.build()
override val useNewChapterEndpoint = true
}

View File

@ -78,6 +78,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("DapRob", "https://daprob.com", "es"),
SingleLang("Dark Scans", "https://darkscans.com", "en"),
SingleLang("Decadence Scans", "https://reader.decadencescans.com", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Dessert Scan", "https://cabaredowatame.site", "pt-BR", isNsfw = true),
SingleLang("DiamondFansub", "https://diamondfansub.com", "tr", overrideVersionCode = 1),
SingleLang("DokkoManga", "https://dokkomanga.com", "es", overrideVersionCode = 1),
SingleLang("Doodmanga", "https://www.doodmanga.com", "th"),
@ -329,6 +330,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Ninja Scan", "https://ninjascan.xyz", "pt-BR", overrideVersionCode = 1),
SingleLang("Nitro Scans", "https://nitroscans.com", "en"),
SingleLang("No Index Scan", "https://noindexscan.com", "pt-BR", isNsfw = true),
SingleLang("Nocturne Summer", "https://nocsummer.com.br", "pt-BR", isNsfw = true),
SingleLang("Noblesse Translations", "https://www.noblessetranslations.com", "es"),
SingleLang("NovelCrow", "https://novelcrow.com", "en", isNsfw = true),
SingleLang("NovelMic", "https://novelmic.com", "en", overrideVersionCode = 1),