From c380fe9093b964b2dd2dd957358cdec7dc4dcc00 Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Thu, 26 Oct 2023 19:49:59 -0500 Subject: [PATCH] Migrate AiYuManga to MangaThemesia (#18727) --- .../aiyumanga/res/mipmap-hdpi/ic_launcher.png | Bin .../aiyumanga/res/mipmap-mdpi/ic_launcher.png | Bin .../res/mipmap-xhdpi/ic_launcher.png | Bin .../res/mipmap-xxhdpi/ic_launcher.png | Bin .../res/mipmap-xxxhdpi/ic_launcher.png | Bin .../aiyumanga/res/web_hi_res_512.png | Bin .../mangathemesia/aiyumanga/src/AiYuManga.kt | 21 ++++++++++++++++ .../zeistmanga/aiyumanga/src/AiYuManga.kt | 23 ------------------ .../mangathemesia/MangaThemesiaGenerator.kt | 1 + .../zeistmanga/ZeistMangaGenerator.kt | 1 - 10 files changed, 22 insertions(+), 24 deletions(-) rename multisrc/overrides/{zeistmanga => mangathemesia}/aiyumanga/res/mipmap-hdpi/ic_launcher.png (100%) rename multisrc/overrides/{zeistmanga => mangathemesia}/aiyumanga/res/mipmap-mdpi/ic_launcher.png (100%) rename multisrc/overrides/{zeistmanga => mangathemesia}/aiyumanga/res/mipmap-xhdpi/ic_launcher.png (100%) rename multisrc/overrides/{zeistmanga => mangathemesia}/aiyumanga/res/mipmap-xxhdpi/ic_launcher.png (100%) rename multisrc/overrides/{zeistmanga => mangathemesia}/aiyumanga/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename multisrc/overrides/{zeistmanga => mangathemesia}/aiyumanga/res/web_hi_res_512.png (100%) create mode 100644 multisrc/overrides/mangathemesia/aiyumanga/src/AiYuManga.kt delete mode 100644 multisrc/overrides/zeistmanga/aiyumanga/src/AiYuManga.kt diff --git a/multisrc/overrides/zeistmanga/aiyumanga/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/aiyumanga/res/mipmap-hdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/zeistmanga/aiyumanga/res/mipmap-hdpi/ic_launcher.png rename to multisrc/overrides/mangathemesia/aiyumanga/res/mipmap-hdpi/ic_launcher.png diff --git a/multisrc/overrides/zeistmanga/aiyumanga/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/aiyumanga/res/mipmap-mdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/zeistmanga/aiyumanga/res/mipmap-mdpi/ic_launcher.png rename to multisrc/overrides/mangathemesia/aiyumanga/res/mipmap-mdpi/ic_launcher.png diff --git a/multisrc/overrides/zeistmanga/aiyumanga/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/aiyumanga/res/mipmap-xhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/zeistmanga/aiyumanga/res/mipmap-xhdpi/ic_launcher.png rename to multisrc/overrides/mangathemesia/aiyumanga/res/mipmap-xhdpi/ic_launcher.png diff --git a/multisrc/overrides/zeistmanga/aiyumanga/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/aiyumanga/res/mipmap-xxhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/zeistmanga/aiyumanga/res/mipmap-xxhdpi/ic_launcher.png rename to multisrc/overrides/mangathemesia/aiyumanga/res/mipmap-xxhdpi/ic_launcher.png diff --git a/multisrc/overrides/zeistmanga/aiyumanga/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/aiyumanga/res/mipmap-xxxhdpi/ic_launcher.png similarity index 100% rename from multisrc/overrides/zeistmanga/aiyumanga/res/mipmap-xxxhdpi/ic_launcher.png rename to multisrc/overrides/mangathemesia/aiyumanga/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/multisrc/overrides/zeistmanga/aiyumanga/res/web_hi_res_512.png b/multisrc/overrides/mangathemesia/aiyumanga/res/web_hi_res_512.png similarity index 100% rename from multisrc/overrides/zeistmanga/aiyumanga/res/web_hi_res_512.png rename to multisrc/overrides/mangathemesia/aiyumanga/res/web_hi_res_512.png diff --git a/multisrc/overrides/mangathemesia/aiyumanga/src/AiYuManga.kt b/multisrc/overrides/mangathemesia/aiyumanga/src/AiYuManga.kt new file mode 100644 index 000000000..7258d67d7 --- /dev/null +++ b/multisrc/overrides/mangathemesia/aiyumanga/src/AiYuManga.kt @@ -0,0 +1,21 @@ +package eu.kanade.tachiyomi.extension.es.aiyumanga + +import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.network.interceptor.rateLimit +import java.text.SimpleDateFormat +import java.util.Locale +import java.util.concurrent.TimeUnit + +class AiYuManga : MangaThemesia( + "AiYuManga", + "https://aiyumanhua.com", + "es", + dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es")), +) { + // Site moved from ZeistManga to MangaThemesia + override val versionId = 3 + + override val client = super.client.newBuilder() + .rateLimit(2, 1, TimeUnit.SECONDS) + .build() +} diff --git a/multisrc/overrides/zeistmanga/aiyumanga/src/AiYuManga.kt b/multisrc/overrides/zeistmanga/aiyumanga/src/AiYuManga.kt deleted file mode 100644 index 6b6650740..000000000 --- a/multisrc/overrides/zeistmanga/aiyumanga/src/AiYuManga.kt +++ /dev/null @@ -1,23 +0,0 @@ -package eu.kanade.tachiyomi.extension.es.aiyumanga - -import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga -import eu.kanade.tachiyomi.source.model.SManga -import eu.kanade.tachiyomi.util.asJsoup -import okhttp3.Response - -class AiYuManga : ZeistManga("AiYuManga", "https://www.aiyumanhua.com", "es") { - - // Site moved from Madara to ZeistManga - override val versionId = 2 - - override fun mangaDetailsParse(response: Response): SManga { - val document = response.asJsoup() - val profileManga = document.selectFirst("header > div.max-w-screen-xl")!! - return SManga.create().apply { - thumbnail_url = profileManga.selectFirst("img")!!.attr("abs:src") - description = document.select("div#synopsis > p").text() - } - } - - override val pageListSelector = "article.chapter div.separator" -} 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 ba3b849f0..2848cc697 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 @@ -17,6 +17,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { MultiLang("Asura Scans", "https://asuratoon.com", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 31), MultiLang("Flame Scans", "https://flamescans.org", listOf("en"), className = "FlameScansFactory", pkgName = "flamescans", overrideVersionCode = 5), MultiLang("Miau Scan", "https://miauscans.com", listOf("es", "pt-BR"), overrideVersionCode = 1), + SingleLang("AiYuManga", "https://aiyumanhua.com", "es", overrideVersionCode = 8), SingleLang("Alceascan", "https://alceascan.my.id", "id"), SingleLang("Animated Glitched Scans", "https://anigliscans.xyz", "en", overrideVersionCode = 1), SingleLang("Arena Scans", "https://arenascans.net", "en", overrideVersionCode = 1), diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zeistmanga/ZeistMangaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zeistmanga/ZeistMangaGenerator.kt index 212e7d6c5..78e7e81b7 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zeistmanga/ZeistMangaGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/zeistmanga/ZeistMangaGenerator.kt @@ -12,7 +12,6 @@ class ZeistMangaGenerator : ThemeSourceGenerator { override val baseVersionCode: Int = 7 override val sources = listOf( - SingleLang("AiYuManga", "https://www.aiyumanhua.com", "es", overrideVersionCode = 27), SingleLang("Asupan Komik", "https://www.asupankomik.my.id", "id", overrideVersionCode = 1), SingleLang("Hijala", "https://hijala.blogspot.com", "ar"), SingleLang("KLManhua", "https://klmanhua.blogspot.com", "id", isNsfw = true),