diff --git a/multisrc/overrides/madara/knightnoscanlation/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/madara/knightnoscanlation/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..2da370968 Binary files /dev/null and b/multisrc/overrides/madara/knightnoscanlation/res/mipmap-hdpi/ic_launcher.png differ diff --git a/multisrc/overrides/madara/knightnoscanlation/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/madara/knightnoscanlation/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..b576c3d32 Binary files /dev/null and b/multisrc/overrides/madara/knightnoscanlation/res/mipmap-mdpi/ic_launcher.png differ diff --git a/multisrc/overrides/madara/knightnoscanlation/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/madara/knightnoscanlation/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..c366d104f Binary files /dev/null and b/multisrc/overrides/madara/knightnoscanlation/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/madara/knightnoscanlation/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/madara/knightnoscanlation/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..d3773e185 Binary files /dev/null and b/multisrc/overrides/madara/knightnoscanlation/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/madara/knightnoscanlation/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/madara/knightnoscanlation/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..79fdb2792 Binary files /dev/null and b/multisrc/overrides/madara/knightnoscanlation/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/madara/knightnoscanlation/src/KnightNoScanlation.kt b/multisrc/overrides/madara/knightnoscanlation/src/KnightNoScanlation.kt new file mode 100644 index 000000000..8b4a03ac3 --- /dev/null +++ b/multisrc/overrides/madara/knightnoscanlation/src/KnightNoScanlation.kt @@ -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" +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index 3ac4cc038..af25998ad 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -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),