ManhwaDesu: fix thumbnails, update domain (#17973)

This commit is contained in:
Vetle Ledaal 2023-09-16 15:38:45 +00:00 committed by GitHub
parent f0402f1f47
commit 4a198a16e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -3,10 +3,23 @@ package eu.kanade.tachiyomi.extension.id.manhwadesu
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient
import org.jsoup.nodes.Element
class ManhwaDesu : MangaThemesia("ManhwaDesu", "https://manhwadesu.org", "id", "/komik") {
class ManhwaDesu : MangaThemesia("ManhwaDesu", "https://manhwadesu.one", "id", "/komik") {
override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(4)
.build()
override fun Element.imgAttr(): String {
attributes()
.find { it.key.endsWith("original-src") }
?.let { return absUrl(it.key) }
return when {
hasAttr("data-lazy-src") -> attr("abs:data-lazy-src")
hasAttr("data-src") -> attr("abs:data-src")
else -> attr("abs:src")
}
}
}

View File

@ -81,7 +81,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("Mangás Chan", "https://mangaschan.net", "pt-BR", className = "MangasChan", overrideVersionCode = 1),
SingleLang("Manhwa Freak", "https://manhwa-freak.com", "en", overrideVersionCode = 2),
SingleLang("ManhwaFreak", "https://manhwafreak.fr", "fr", className = "ManhwaFreakFR"),
SingleLang("ManhwaDesu", "https://manhwadesu.org", "id", isNsfw = true, overrideVersionCode = 3),
SingleLang("ManhwaDesu", "https://manhwadesu.one", "id", isNsfw = true, overrideVersionCode = 4),
SingleLang("ManhwaIndo", "https://manhwaindo.id", "id", isNsfw = true, overrideVersionCode = 2),
SingleLang("ManhwaLand.mom", "https://manhwaland.lat", "id", isNsfw = true, className = "ManhwaLandMom", overrideVersionCode = 5),
SingleLang("ManhwaList", "https://manhwalist.xyz", "id", overrideVersionCode = 3),