Add two new sources to Madara. (#9889)
This commit is contained in:
parent
efd26c5185
commit
190d406ef0
|
@ -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"
|
||||||
|
}
|
|
@ -15,5 +15,4 @@ class ShieldManga : Madara("Shield Manga", "https://shieldmanga.club", "en") {
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
override fun chapterListSelector() = "li.wp-manga-hapter, .version-chap li"
|
override fun chapterListSelector() = "li.wp-manga-hapter, .version-chap li"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
}
|
|
@ -316,6 +316,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("Oh No Manga", "https://ohnomanga.com", "en", isNsfw = true),
|
SingleLang("Oh No Manga", "https://ohnomanga.com", "en", isNsfw = true),
|
||||||
SingleLang("Olho da Lua", "https://olhodalua.xyz", "pt-BR", className = "OlhoDaLua", overrideVersionCode = 1),
|
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("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("OTksScanlator", "https://otkscanlator.xyz", "pt-BR", isNsfw = true, className = "OtksScanlator"),
|
||||||
SingleLang("Paean Scans", "https://paeanscans.com", "en", overrideVersionCode = 1),
|
SingleLang("Paean Scans", "https://paeanscans.com", "en", overrideVersionCode = 1),
|
||||||
SingleLang("Painful Nightz Scan", "https://painfulnightzscan.com", "en"),
|
SingleLang("Painful Nightz Scan", "https://painfulnightzscan.com", "en"),
|
||||||
|
@ -361,6 +362,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("SkyRaws", "https://skyraws.com", "en", overrideVersionCode = 1),
|
SingleLang("SkyRaws", "https://skyraws.com", "en", overrideVersionCode = 1),
|
||||||
SingleLang("Sleeping Knight Scans", "https://skscans.com", "en", overrideVersionCode = 2),
|
SingleLang("Sleeping Knight Scans", "https://skscans.com", "en", overrideVersionCode = 2),
|
||||||
SingleLang("Sleepy Translations", "https://sleepytranslations.com", "en", overrideVersionCode = 1),
|
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("SodaScan", "https://sodascan.xyz", "pt-BR", isNsfw = true),
|
||||||
SingleLang("Solo Leveling", "https://readsololeveling.online", "en"),
|
SingleLang("Solo Leveling", "https://readsololeveling.online", "en"),
|
||||||
SingleLang("StageComics", "https://stagecomics.com", "pt-BR", overrideVersionCode = 3),
|
SingleLang("StageComics", "https://stagecomics.com", "pt-BR", overrideVersionCode = 3),
|
||||||
|
|
Loading…
Reference in New Issue