Add Knight No Scanlation to Madara (#645)

* Add KnightNoScanlation

* Add icon

* Missing import

* Fix status
This commit is contained in:
bapeey 2024-01-25 23:02:08 -05:00 committed by GitHub
parent 4e5edb4b56
commit 88b60005f3
7 changed files with 25 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,24 @@
package eu.kanade.tachiyomi.extension.es.knightnoscanlation
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimitHost
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class KnightNoScanlation : Madara(
"Knight No Scanlation",
"https://knightnoscanlation.com",
"es",
SimpleDateFormat("MMMM dd, yyyy", Locale("es")),
) {
override val client: OkHttpClient = super.client.newBuilder()
.rateLimitHost(baseUrl.toHttpUrl(), 2, 1, TimeUnit.SECONDS)
.build()
override val mangaSubString = "sr"
override val mangaDetailsSelectorStatus = "div.post-content_item:contains(Status) div.summary-content"
}

View File

@ -175,6 +175,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Kings-Manga", "https://www.kings-manga.co", "th", className = "KingsManga"),
SingleLang("Kissmanga.in", "https://kissmanga.in", "en", className = "KissmangaIn", overrideVersionCode = 3),
SingleLang("KlikManga", "https://klikmanga.id", "id", overrideVersionCode = 2),
SingleLang("Knight No Scanlation", "https://knightnoscanlation.com", "es", isNsfw = true),
SingleLang("Koinobori Scan", "https://koinoboriscan.com", "es", isNsfw = true),
SingleLang("Komik Chan", "https://komikchan.com", "en", overrideVersionCode = 1),
SingleLang("Komik Gue", "https://komikgue.pro", "id", isNsfw = true),