From 4f3500d728427b3ea2f05d64a76dabcbe3bb9fca Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Tue, 27 Feb 2024 09:31:30 -0500 Subject: [PATCH] TresDaosScan: Move to Madara (#1581) Move to Madara --- src/es/tresdaosscan/build.gradle | 2 +- .../extension/es/tresdaosscan/TresDaosScan.kt | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/es/tresdaosscan/build.gradle b/src/es/tresdaosscan/build.gradle index 6f58a692e..978cd55cd 100644 --- a/src/es/tresdaosscan/build.gradle +++ b/src/es/tresdaosscan/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Tres Daos Scan' extClass = '.TresDaosScan' - themePkg = 'mangathemesia' + themePkg = 'madara' baseUrl = 'https://tresdaos.com' overrideVersionCode = 0 } diff --git a/src/es/tresdaosscan/src/eu/kanade/tachiyomi/extension/es/tresdaosscan/TresDaosScan.kt b/src/es/tresdaosscan/src/eu/kanade/tachiyomi/extension/es/tresdaosscan/TresDaosScan.kt index 78dd9cc99..e9af29568 100644 --- a/src/es/tresdaosscan/src/eu/kanade/tachiyomi/extension/es/tresdaosscan/TresDaosScan.kt +++ b/src/es/tresdaosscan/src/eu/kanade/tachiyomi/extension/es/tresdaosscan/TresDaosScan.kt @@ -1,20 +1,25 @@ package eu.kanade.tachiyomi.extension.es.tresdaosscan -import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.network.interceptor.rateLimit import java.text.SimpleDateFormat import java.util.Locale import java.util.concurrent.TimeUnit -class TresDaosScan : MangaThemesia( +class TresDaosScan : Madara( "Tres Daos Scan", "https://tresdaos.com", "es", - dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es")), + SimpleDateFormat("MMMM dd, yyyy", Locale("es")), ) { + // Site move from MangaThemesia to Madara + override val versionId = 2 + + override val useLoadMoreRequest = LoadMoreStrategy.Always + + override val useNewChapterEndpoint = true + override val client = super.client.newBuilder() .rateLimit(2, 1, TimeUnit.SECONDS) .build() - - override val seriesStatusSelector = ".tsinfo .imptdt:contains(estado) i" }