Migrate AiYuManga to MangaThemesia (#18727)
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 280 KiB After Width: | Height: | Size: 280 KiB |
|
@ -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()
|
||||
}
|
|
@ -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"
|
||||
}
|
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|