Add two new sources to Madara. (#9889)

This commit is contained in:
Alessandro Jean 2021-11-21 20:40:25 -03:00 committed by GitHub
parent efd26c5185
commit 190d406ef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,17 @@
package eu.kanade.tachiyomi.extension.pt.owscan
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit
class OwScan : Madara("Ow Scan", "https://owscan.com", "pt-BR") {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override val altName = "Nome alternativo: "
override fun popularMangaSelector() = "div.page-item-detail.manga"
}

View File

@ -15,5 +15,4 @@ class ShieldManga : Madara("Shield Manga", "https://shieldmanga.club", "en") {
.build()
override fun chapterListSelector() = "li.wp-manga-hapter, .version-chap li"
}

View File

@ -0,0 +1,24 @@
package eu.kanade.tachiyomi.extension.pt.smashscan
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 SmashScan : Madara(
"Smash Scan",
"https://smashscan.com.br",
"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 altName = "Nome alternativo: "
override fun popularMangaSelector() = "div.page-item-detail.manga"
}

View File

@ -316,6 +316,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Oh No Manga", "https://ohnomanga.com", "en", isNsfw = true),
SingleLang("Olho da Lua", "https://olhodalua.xyz", "pt-BR", className = "OlhoDaLua", overrideVersionCode = 1),
SingleLang("Origami Orpheans", "https://origami-orpheans.com.br", "pt-BR", overrideVersionCode = 3),
SingleLang("Ow Scan", "https://owscan.com", "pt-BR"),
SingleLang("OTksScanlator", "https://otkscanlator.xyz", "pt-BR", isNsfw = true, className = "OtksScanlator"),
SingleLang("Paean Scans", "https://paeanscans.com", "en", overrideVersionCode = 1),
SingleLang("Painful Nightz Scan", "https://painfulnightzscan.com", "en"),
@ -361,6 +362,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("SkyRaws", "https://skyraws.com", "en", overrideVersionCode = 1),
SingleLang("Sleeping Knight Scans", "https://skscans.com", "en", overrideVersionCode = 2),
SingleLang("Sleepy Translations", "https://sleepytranslations.com", "en", overrideVersionCode = 1),
SingleLang("Smash Scan", "https://smashscan.com.br", "pt-BR"),
SingleLang("SodaScan", "https://sodascan.xyz", "pt-BR", isNsfw = true),
SingleLang("Solo Leveling", "https://readsololeveling.online", "en"),
SingleLang("StageComics", "https://stagecomics.com", "pt-BR", overrideVersionCode = 3),