From 65f9de384e871089765f44986e94e3368a92cc48 Mon Sep 17 00:00:00 2001 From: bapeey <90949336+bapeey@users.noreply.github.com> Date: Mon, 13 May 2024 10:20:26 -0500 Subject: [PATCH] TecnoScan: Move to Madara (#2993) Move to Madara --- src/es/tecnoscan/build.gradle | 4 ++-- .../extension/es/tecnoscan/TecnoScan.kt | 20 +++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/es/tecnoscan/build.gradle b/src/es/tecnoscan/build.gradle index 66959fb06..43d1fff66 100644 --- a/src/es/tecnoscan/build.gradle +++ b/src/es/tecnoscan/build.gradle @@ -1,9 +1,9 @@ ext { extName = 'Tecno Scan' extClass = '.TecnoScan' - themePkg = 'mangathemesia' + themePkg = 'madara' baseUrl = 'https://visortecno.com' - overrideVersionCode = 7 + overrideVersionCode = 2 isNsfw = true } diff --git a/src/es/tecnoscan/src/eu/kanade/tachiyomi/extension/es/tecnoscan/TecnoScan.kt b/src/es/tecnoscan/src/eu/kanade/tachiyomi/extension/es/tecnoscan/TecnoScan.kt index 29e465370..38156eceb 100644 --- a/src/es/tecnoscan/src/eu/kanade/tachiyomi/extension/es/tecnoscan/TecnoScan.kt +++ b/src/es/tecnoscan/src/eu/kanade/tachiyomi/extension/es/tecnoscan/TecnoScan.kt @@ -1,17 +1,25 @@ package eu.kanade.tachiyomi.extension.es.tecnoscan -import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.network.interceptor.rateLimitHost +import okhttp3.HttpUrl.Companion.toHttpUrl import java.text.SimpleDateFormat import java.util.Locale +import java.util.concurrent.TimeUnit -class TecnoScan : MangaThemesia( +class TecnoScan : Madara( "Tecno Scan", "https://visortecno.com", "es", - dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es")), + SimpleDateFormat("MMMM dd, yyyy", Locale("es")), ) { - // Site moved from Madara to MangaThemesia - override val versionId = 3 + // Site moved from MangaThemesia to Madara + override val versionId = 4 - override val seriesStatusSelector = ".tsinfo .imptdt:contains(Estado) i" + override val client = super.client.newBuilder() + .rateLimitHost(baseUrl.toHttpUrl(), 3, 1, TimeUnit.SECONDS) + .build() + + override val useLoadMoreRequest = LoadMoreStrategy.Always + override val useNewChapterEndpoint = true }