From 2451072c349d1b7f796cae1186e67003a880adc4 Mon Sep 17 00:00:00 2001 From: Chopper <156493704+choppeh@users.noreply.github.com> Date: Fri, 11 Oct 2024 08:29:39 -0300 Subject: [PATCH] LScans: Migrate theme (#5470) Migrate theme --- src/pt/lscans/build.gradle | 4 ++-- .../tachiyomi/extension/pt/lscans/LScans.kt | 16 +++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/pt/lscans/build.gradle b/src/pt/lscans/build.gradle index 12c0cc415..827a9f1a4 100644 --- a/src/pt/lscans/build.gradle +++ b/src/pt/lscans/build.gradle @@ -1,9 +1,9 @@ ext { extName = 'L Scans' extClass = '.LScans' - themePkg = 'madara' + themePkg = 'peachscan' baseUrl = 'https://lscans.com' - overrideVersionCode = 0 + overrideVersionCode = 28 isNsfw = false } diff --git a/src/pt/lscans/src/eu/kanade/tachiyomi/extension/pt/lscans/LScans.kt b/src/pt/lscans/src/eu/kanade/tachiyomi/extension/pt/lscans/LScans.kt index 88c066846..363d5f5c7 100644 --- a/src/pt/lscans/src/eu/kanade/tachiyomi/extension/pt/lscans/LScans.kt +++ b/src/pt/lscans/src/eu/kanade/tachiyomi/extension/pt/lscans/LScans.kt @@ -1,15 +1,17 @@ package eu.kanade.tachiyomi.extension.pt.lscans -import eu.kanade.tachiyomi.multisrc.madara.Madara -import java.text.SimpleDateFormat -import java.util.Locale +import eu.kanade.tachiyomi.multisrc.peachscan.PeachScan +import eu.kanade.tachiyomi.network.interceptor.rateLimit -class LScans : Madara( +class LScans : PeachScan( "L Scans", "https://lscans.com", "pt-BR", - dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.ROOT), ) { - override val useLoadMoreRequest = LoadMoreStrategy.Always - override val useNewChapterEndpoint = true + // Moved from Madara to PeachScan + override val versionId = 2 + + override val client = super.client.newBuilder() + .rateLimit(3) + .build() }