From 12a638555e304987db345b92f5480e22fe2e4cab Mon Sep 17 00:00:00 2001 From: Chopper <156493704+choppeh@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:02:52 -0300 Subject: [PATCH] LunarScan(PT): Update domain (#4419) Update domain --- src/pt/lunarscan/build.gradle | 4 ++-- .../tachiyomi/extension/pt/lunarscan/LunarScan.kt | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/pt/lunarscan/build.gradle b/src/pt/lunarscan/build.gradle index 7229cc0dc..9cddf2d9e 100644 --- a/src/pt/lunarscan/build.gradle +++ b/src/pt/lunarscan/build.gradle @@ -2,8 +2,8 @@ ext { extName = 'Lunar Scan' extClass = '.LunarScan' themePkg = 'madara' - baseUrl = 'https://lunarscan.com.br' - overrideVersionCode = 1 + baseUrl = 'https://lunarrscan.com' + overrideVersionCode = 2 } apply from: "$rootDir/common.gradle" diff --git a/src/pt/lunarscan/src/eu/kanade/tachiyomi/extension/pt/lunarscan/LunarScan.kt b/src/pt/lunarscan/src/eu/kanade/tachiyomi/extension/pt/lunarscan/LunarScan.kt index c4248f189..5a41ba1a3 100644 --- a/src/pt/lunarscan/src/eu/kanade/tachiyomi/extension/pt/lunarscan/LunarScan.kt +++ b/src/pt/lunarscan/src/eu/kanade/tachiyomi/extension/pt/lunarscan/LunarScan.kt @@ -1,14 +1,23 @@ package eu.kanade.tachiyomi.extension.pt.lunarscan import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.network.interceptor.rateLimit import java.text.SimpleDateFormat import java.util.Locale class LunarScan : Madara( "Lunar Scan", - "https://lunarscan.com.br", + "https://lunarrscan.com", "pt-BR", - SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")), + SimpleDateFormat("MMM dd, yyyy", Locale("pt", "BR")), ) { - override val mangaSubString = "obra" + override val client = super.client.newBuilder() + .rateLimit(2) + .build() + + override val mangaSubString = "obras" + + override val useNewChapterEndpoint = true + + override val useLoadMoreRequest = LoadMoreStrategy.Never }