From f7b2294a501f53aa33935a9baa3cf7318168d81b Mon Sep 17 00:00:00 2001 From: Narin Date: Mon, 21 Jun 2021 10:20:31 -0700 Subject: [PATCH] Add NSFW Override (#7798) --- .../dragontranslation/src/DragonTranslation.kt | 7 +++++++ .../wpmangareader/patatescans/src/Patatescans.kt | 7 +++++++ .../overrides/wpmangareader/sekaikomik/src/Sekaikomik.kt | 3 ++- .../wpmangastream/sektedoujin/src/SekteDoujin.kt | 2 ++ .../multisrc/wpmangareader/WPMangaReaderGenerator.kt | 8 ++++---- .../multisrc/wpmangastream/WPMangaStreamGenerator.kt | 2 +- 6 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 multisrc/overrides/wpmangareader/dragontranslation/src/DragonTranslation.kt create mode 100644 multisrc/overrides/wpmangareader/patatescans/src/Patatescans.kt diff --git a/multisrc/overrides/wpmangareader/dragontranslation/src/DragonTranslation.kt b/multisrc/overrides/wpmangareader/dragontranslation/src/DragonTranslation.kt new file mode 100644 index 000000000..894f47e6e --- /dev/null +++ b/multisrc/overrides/wpmangareader/dragontranslation/src/DragonTranslation.kt @@ -0,0 +1,7 @@ +package eu.kanade.tachiyomi.extension.es.dragontranslation + +import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader +import eu.kanade.tachiyomi.annotations.Nsfw + +@Nsfw +class DragonTranslation : WPMangaReader("DragonTranslation", "https://dragontranslation.com", "es") diff --git a/multisrc/overrides/wpmangareader/patatescans/src/Patatescans.kt b/multisrc/overrides/wpmangareader/patatescans/src/Patatescans.kt new file mode 100644 index 000000000..850c90306 --- /dev/null +++ b/multisrc/overrides/wpmangareader/patatescans/src/Patatescans.kt @@ -0,0 +1,7 @@ +package eu.kanade.tachiyomi.extension.fr.patatescans + +import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader +import eu.kanade.tachiyomi.annotations.Nsfw + +@Nsfw +class Patatescans : WPMangaReader("Patatescans", "https://patatescans.com", "fr") diff --git a/multisrc/overrides/wpmangareader/sekaikomik/src/Sekaikomik.kt b/multisrc/overrides/wpmangareader/sekaikomik/src/Sekaikomik.kt index 9ebaf903f..d5ae8d99e 100644 --- a/multisrc/overrides/wpmangareader/sekaikomik/src/Sekaikomik.kt +++ b/multisrc/overrides/wpmangareader/sekaikomik/src/Sekaikomik.kt @@ -1,8 +1,9 @@ package eu.kanade.tachiyomi.extension.id.sekaikomik import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader +import eu.kanade.tachiyomi.annotations.Nsfw import java.text.SimpleDateFormat import java.util.Locale - +@Nsfw class Sekaikomik : WPMangaReader("Sekaikomik", "https://www.sekaikomik.xyz", "id", dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("id"))) diff --git a/multisrc/overrides/wpmangastream/sektedoujin/src/SekteDoujin.kt b/multisrc/overrides/wpmangastream/sektedoujin/src/SekteDoujin.kt index 357f892bf..8f3aaa9f7 100644 --- a/multisrc/overrides/wpmangastream/sektedoujin/src/SekteDoujin.kt +++ b/multisrc/overrides/wpmangastream/sektedoujin/src/SekteDoujin.kt @@ -2,11 +2,13 @@ package eu.kanade.tachiyomi.extension.id.sektedoujin import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor +import eu.kanade.tachiyomi.annotations.Nsfw import java.util.concurrent.TimeUnit import okhttp3.OkHttpClient import java.text.SimpleDateFormat import java.util.Locale +@Nsfw class SekteDoujin : WPMangaStream("Sekte Doujin", "https://sektedoujin.xyz", "id", SimpleDateFormat("MMMM dd, yyyy", Locale.forLanguageTag("id"))) { private val rateLimitInterceptor = RateLimitInterceptor(4) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt index f1681ae9c..40782e271 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangareader/WPMangaReaderGenerator.kt @@ -17,7 +17,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator { SingleLang("MangaKita", "https://mangakita.net", "id", overrideVersionCode = 1), SingleLang("Martial Manga", "https://martialmanga.com/", "es"), SingleLang("Ngomik", "https://ngomik.net", "id", overrideVersionCode = 1), - SingleLang("Sekaikomik", "https://www.sekaikomik.xyz", "id", isNsfw = true, overrideVersionCode = 5), + SingleLang("Sekaikomik", "https://www.sekaikomik.xyz", "id", isNsfw = true, overrideVersionCode = 6), SingleLang("Davey Scans", "https://daveyscans.com/", "id"), SingleLang("Mangasusu", "https://mangasusu.co.in", "id", isNsfw = true), SingleLang("TurkToon", "https://turktoon.com", "tr"), @@ -31,9 +31,9 @@ class WPMangaReaderGenerator : ThemeSourceGenerator { SingleLang("Seafoam Scans", "https://seafoamscans.com", "en"), SingleLang("GS Nation", "https://gs-nation.fr", "fr", overrideVersionCode = 1), SingleLang("YugenMangas", "https://yugenmangas.com", "es"), - SingleLang("DragonTranslation", "https://dragontranslation.com", "es", isNsfw = true), - SingleLang("Patatescans", "https://patatescans.com", "fr", isNsfw = true), - SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es", isNsfw = true), + SingleLang("DragonTranslation", "https://dragontranslation.com", "es", isNsfw = true, overrideVersionCode = 1), + SingleLang("Patatescans", "https://patatescans.com", "fr", isNsfw = true, overrideVersionCode = 1), + SingleLang("Fusion Scanlation", "https://fusionscanlation.com", "es"), ) companion object { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt index a78c8a509..fdd824ed8 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt @@ -41,7 +41,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator { SingleLang("NoxSubs", "https://noxsubs.com", "tr"), SingleLang("World Romance Translation", "https://wrt.my.id/", "id", overrideVersionCode = 2), SingleLang("The Apollo Team", "https://theapollo.team", "en"), - SingleLang("Sekte Doujin", "https://sektedoujin.xyz", "id", isNsfw = true), + SingleLang("Sekte Doujin", "https://sektedoujin.xyz", "id", isNsfw = true, overrideVersionCode = 2), SingleLang("Lemon Juice Scan", "https://lemonjuicescan.com", "pt-BR", isNsfw = true), SingleLang("Phoenix Fansub", "https://phoenixfansub.com", "es") )