From ff7408266ecedcb18b0c1647059f196a3d35fdf5 Mon Sep 17 00:00:00 2001 From: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com> Date: Sat, 6 Apr 2024 11:44:13 +0500 Subject: [PATCH] LuraToon: move to PeachScan (#2268) --- src/pt/randomscan/build.gradle | 4 ++-- .../extension/pt/randomscan/LuraToon.kt | 22 ++++--------------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/src/pt/randomscan/build.gradle b/src/pt/randomscan/build.gradle index 4fd533fed..41a188242 100644 --- a/src/pt/randomscan/build.gradle +++ b/src/pt/randomscan/build.gradle @@ -1,9 +1,9 @@ ext { extName = 'Lura Toon' extClass = '.LuraToon' - themePkg = 'madara' + themePkg = 'peachscan' baseUrl = 'https://luratoon.com' - overrideVersionCode = 7 + overrideVersionCode = 39 } apply from: "$rootDir/common.gradle" diff --git a/src/pt/randomscan/src/eu/kanade/tachiyomi/extension/pt/randomscan/LuraToon.kt b/src/pt/randomscan/src/eu/kanade/tachiyomi/extension/pt/randomscan/LuraToon.kt index 29a7ced27..78201d350 100644 --- a/src/pt/randomscan/src/eu/kanade/tachiyomi/extension/pt/randomscan/LuraToon.kt +++ b/src/pt/randomscan/src/eu/kanade/tachiyomi/extension/pt/randomscan/LuraToon.kt @@ -1,24 +1,10 @@ package eu.kanade.tachiyomi.extension.pt.randomscan -import eu.kanade.tachiyomi.multisrc.madara.Madara +import eu.kanade.tachiyomi.multisrc.peachscan.PeachScan import eu.kanade.tachiyomi.network.interceptor.rateLimit -import okhttp3.OkHttpClient -import java.text.SimpleDateFormat -import java.util.Locale -import java.util.concurrent.TimeUnit -class LuraToon : Madara( - "Lura Toon", - "https://luratoon.com", - "pt-BR", - SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")), -) { - // Name changed from Random Scan to Lura Toon and Domain change - override val id: Long = 8295593204533043008 - - override val client: OkHttpClient = super.client.newBuilder() - .rateLimit(1, 2, TimeUnit.SECONDS) +class LuraToon : PeachScan("Lura Toon", "https://luratoon.com", "pt-BR") { + override val client = super.client.newBuilder() + .rateLimit(1, 2) .build() - - override val useNewChapterEndpoint = true }