From c8df4afffdc4d6a07e0dfb8d073e01f4056aa2e3 Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Sun, 14 Jan 2024 00:25:19 -0500 Subject: [PATCH] Cartel de Manhwas: Fix thumbnails (#239) * Fix thumbnails * Remove all other sources for test * Revert "Remove all other sources for test" This reverts commit 36758ba22b4ae4b761610d4fbd09abf1359c1ccc. * Bump * Add line space --- .../mangathemesia/carteldemanhwas/src/CarteldeManhwas.kt | 8 ++++++++ .../multisrc/mangathemesia/MangaThemesiaGenerator.kt | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/multisrc/overrides/mangathemesia/carteldemanhwas/src/CarteldeManhwas.kt b/multisrc/overrides/mangathemesia/carteldemanhwas/src/CarteldeManhwas.kt index d7291369d..f2f56e372 100644 --- a/multisrc/overrides/mangathemesia/carteldemanhwas/src/CarteldeManhwas.kt +++ b/multisrc/overrides/mangathemesia/carteldemanhwas/src/CarteldeManhwas.kt @@ -1,6 +1,7 @@ package eu.kanade.tachiyomi.extension.es.carteldemanhwas import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import org.jsoup.nodes.Element import java.text.SimpleDateFormat import java.util.Locale @@ -14,6 +15,13 @@ class CarteldeManhwas : MangaThemesia( override val hasProjectPage = true override val projectPageString = "/proyectos" + override fun Element.imgAttr(): String = when { + hasAttr("data-lazy-src") -> attr("abs:data-lazy-src") + hasAttr("data-cfsrc") -> attr("abs:data-cfsrc") + hasAttr("data-src") -> attr("abs:data-src") + else -> attr("abs:src") + } + override fun searchMangaSelector() = ".utao .uta .imgu:not(:has(span.novelabel)), " + ".listupd .bs .bsx:not(:has(span.novelabel)), " + ".listo .bs .bsx:not(:has(span.novelabel))" 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 5fba0852e..ba9265515 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 @@ -30,7 +30,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("Berserker Scan", "https://ragnascan.com", "es"), SingleLang("BirdManga", "https://birdmanga.com", "en"), SingleLang("Boosei", "https://boosei.net", "id", overrideVersionCode = 2), - SingleLang("Cartel de Manhwas", "https://carteldemanhwas.com", "es", overrideVersionCode = 5), + SingleLang("Cartel de Manhwas", "https://carteldemanhwas.com", "es", overrideVersionCode = 6), SingleLang("Constellar Scans", "https://constellarcomic.com", "en", isNsfw = true, overrideVersionCode = 16), SingleLang("Cosmic Scans", "https://cosmic-scans.com", "en", overrideVersionCode = 2), SingleLang("CosmicScans.id", "https://cosmicscans.id", "id", overrideVersionCode = 3, className = "CosmicScansID"),