From 85fc0dc390821f4ed2826da29cf27c68b5c6c3fd Mon Sep 17 00:00:00 2001 From: devil6venom <92388530+devil6venom@users.noreply.github.com> Date: Tue, 6 Feb 2024 12:31:08 +0545 Subject: [PATCH] Hentai20 Theme Changed Fix (#1043) * hentai20 Theme Changed * Create hentai20.kt Added Rate limit !! * Add files via upload * Delete multisrc/overrides/mangathemesia/hentai20/src/hentai20.kt Removed old class * Update Hentai20.kt --- multisrc/overrides/madara/hentai20/src/Hentai20.kt | 13 ------------- .../hentai20/res/mipmap-hdpi/ic_launcher.png | Bin .../hentai20/res/mipmap-mdpi/ic_launcher.png | Bin .../hentai20/res/mipmap-xhdpi/ic_launcher.png | Bin .../hentai20/res/mipmap-xxhdpi/ic_launcher.png | Bin .../hentai20/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../mangathemesia/hentai20/src/Hentai20.kt | 12 ++++++++++++ .../tachiyomi/multisrc/madara/MadaraGenerator.kt | 1 - .../mangathemesia/MangaThemesiaGenerator.kt | 1 + 9 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 multisrc/overrides/madara/hentai20/src/Hentai20.kt rename multisrc/overrides/{madara => mangathemesia}/hentai20/res/mipmap-hdpi/ic_launcher.png (100%) rename multisrc/overrides/{madara => mangathemesia}/hentai20/res/mipmap-mdpi/ic_launcher.png (100%) rename multisrc/overrides/{madara => mangathemesia}/hentai20/res/mipmap-xhdpi/ic_launcher.png (100%) rename multisrc/overrides/{madara => mangathemesia}/hentai20/res/mipmap-xxhdpi/ic_launcher.png (100%) rename multisrc/overrides/{madara => mangathemesia}/hentai20/res/mipmap-xxxhdpi/ic_launcher.png (100%) create mode 100644 multisrc/overrides/mangathemesia/hentai20/src/Hentai20.kt diff --git a/multisrc/overrides/madara/hentai20/src/Hentai20.kt b/multisrc/overrides/madara/hentai20/src/Hentai20.kt deleted file mode 100644 index 574ba93fc..000000000 --- a/multisrc/overrides/madara/hentai20/src/Hentai20.kt +++ /dev/null @@ -1,13 +0,0 @@ -package eu.kanade.tachiyomi.extension.en.hentai20 - -import eu.kanade.tachiyomi.multisrc.madara.Madara -import eu.kanade.tachiyomi.network.interceptor.rateLimit -import okhttp3.OkHttpClient -import java.util.concurrent.TimeUnit - -class Hentai20 : Madara("Hentai20", "https://hentai20.io", "en") { - - override val client: OkHttpClient = super.client.newBuilder() - .rateLimit(1, 1, TimeUnit.SECONDS) - .build() -} diff --git a/multisrc/overrides/madara/hentai20/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/hentai20/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/madara/hentai20/res/mipmap-hdpi/ic_launcher.png rename to multisrc/overrides/mangathemesia/hentai20/res/mipmap-hdpi/ic_launcher.png diff --git a/multisrc/overrides/madara/hentai20/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/hentai20/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/madara/hentai20/res/mipmap-mdpi/ic_launcher.png rename to multisrc/overrides/mangathemesia/hentai20/res/mipmap-mdpi/ic_launcher.png diff --git a/multisrc/overrides/madara/hentai20/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/hentai20/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/madara/hentai20/res/mipmap-xhdpi/ic_launcher.png rename to multisrc/overrides/mangathemesia/hentai20/res/mipmap-xhdpi/ic_launcher.png diff --git a/multisrc/overrides/madara/hentai20/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/hentai20/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/madara/hentai20/res/mipmap-xxhdpi/ic_launcher.png rename to multisrc/overrides/mangathemesia/hentai20/res/mipmap-xxhdpi/ic_launcher.png diff --git a/multisrc/overrides/madara/hentai20/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/hentai20/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/madara/hentai20/res/mipmap-xxxhdpi/ic_launcher.png rename to multisrc/overrides/mangathemesia/hentai20/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/multisrc/overrides/mangathemesia/hentai20/src/Hentai20.kt b/multisrc/overrides/mangathemesia/hentai20/src/Hentai20.kt new file mode 100644 index 000000000..e01195884 --- /dev/null +++ b/multisrc/overrides/mangathemesia/hentai20/src/Hentai20.kt @@ -0,0 +1,12 @@ +package eu.kanade.tachiyomi.extension.en.hentai20 + +import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.network.interceptor.rateLimit +import okhttp3.OkHttpClient + +class Hentai20 : MangaThemesia("Hentai20", "https://hentai20.io", "en", "/manga") { + + override val client: OkHttpClient = super.client.newBuilder() + .rateLimit(1, 1, TimeUnit.SECONDS) + .build() +} 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 37b002a2d..2616136ba 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 @@ -118,7 +118,6 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Hentai Manga", "https://hentaimanga.me", "en", isNsfw = true, overrideVersionCode = 1), SingleLang("Hentai Teca", "https://hentaiteca.net", "pt-BR", isNsfw = true, overrideVersionCode = 1), SingleLang("Hentai-Scantrad", "https://hentai.scantrad-vf.cc", "fr", isNsfw = true, className = "HentaiScantrad", overrideVersionCode = 1), - SingleLang("Hentai20", "https://hentai20.io", "en", isNsfw = true, overrideVersionCode = 3), SingleLang("Hentai3z", "https://hentai3z.xyz", "en", isNsfw = true), SingleLang("Hentai4Free", "https://hentai4free.net", "en", isNsfw = true), SingleLang("HentaiRead", "https://hentairead.com", "en", isNsfw = true, className = "Hentairead", overrideVersionCode = 3), diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt index f8c2052df..bb5cc7f6c 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt @@ -48,6 +48,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("Glory Scans", "https://gloryscans.fr", "fr"), SingleLang("Gremory Mangas", "https://gremorymangas.com", "es"), SingleLang("Hanuman Scan", "https://hanumanscan.com", "en"), + SingleLang("Hentai20", "https://hentai20.io", "en", isNsfw = true, overrideVersionCode = 9), SingleLang("Heroxia", "https://heroxia.com", "id", isNsfw = true), SingleLang("Hikari Scan", "https://hikariscan.org", "pt-BR", isNsfw = true, overrideVersionCode = 2), SingleLang("Imagine Scan", "https://imaginescan.com.br", "pt-BR", isNsfw = true, overrideVersionCode = 1),