Migrate AiYuManga to MangaThemesia (#18727)

This commit is contained in:
bapeey 2023-10-26 19:49:59 -05:00 committed by GitHub
parent 957431c9d4
commit c380fe9093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 22 additions and 24 deletions

View File

Before

Width:  |  Height:  |  Size: 280 KiB

After

Width:  |  Height:  |  Size: 280 KiB

View File

@ -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()
}

View File

@ -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"
}

View File

@ -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),

View File

@ -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),