Add a new source to Madara (closes #10268). (#10309)

This commit is contained in:
Alessandro Jean 2022-01-02 20:48:21 -03:00 committed by GitHub
parent 98f69886ee
commit c1ed9e2c86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
package eu.kanade.tachiyomi.extension.pt.aiinscan
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 AiinScan : Madara(
"Aiin Scan",
"https://aiinscan.xyz",
"pt-BR",
SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override val useNewChapterEndpoint: Boolean = true
override val altName: String = "Nome alternativo: "
override fun popularMangaSelector() = "div.page-item-detail.manga"
}

View File

@ -29,6 +29,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("AZManhwa", "https://azmanhwa.net", "en"),
SingleLang("Adonis Fansub", "https://manga.adonisfansub.com", "tr", overrideVersionCode = 1),
SingleLang("Agent of Change Translations", "https://aoc.moe", "en", overrideVersionCode = 1),
SingleLang("Aiin Scan", "https://aiinscan.xyz", "pt-BR"),
SingleLang("AkuManga", "https://akumanga.com", "ar", overrideVersionCode = 1),
SingleLang("AllPornComic", "https://allporncomic.com", "en", isNsfw = true),
SingleLang("Anime Center Scan", "https://animecenterscan.com", "pt-BR", isNsfw = true),