TecnoScan: Move to Madara (#2993)

Move to Madara
This commit is contained in:
bapeey 2024-05-13 10:20:26 -05:00 committed by Draff
parent 6e21329ada
commit 65f9de384e
2 changed files with 16 additions and 8 deletions

View File

@ -1,9 +1,9 @@
ext {
extName = 'Tecno Scan'
extClass = '.TecnoScan'
themePkg = 'mangathemesia'
themePkg = 'madara'
baseUrl = 'https://visortecno.com'
overrideVersionCode = 7
overrideVersionCode = 2
isNsfw = true
}

View File

@ -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
}