From 61f7d83728ec749cc72bf7e2a099566db3dac21f Mon Sep 17 00:00:00 2001 From: Chopper <156493704+choppeh@users.noreply.github.com> Date: Tue, 15 Oct 2024 04:00:24 -0300 Subject: [PATCH] HikariGaNai: Migrate theme (#5527) Migrate theme --- src/pt/hikariganai/build.gradle | 5 ++--- .../extension/pt/hikariganai/HikariGaNai.kt | 16 +++++++++------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/pt/hikariganai/build.gradle b/src/pt/hikariganai/build.gradle index 927189c0c..c6d27d4fa 100644 --- a/src/pt/hikariganai/build.gradle +++ b/src/pt/hikariganai/build.gradle @@ -1,10 +1,9 @@ ext { extName = 'Hikari Ga Nai' extClass = '.HikariGaNai' - themePkg = 'madara' + themePkg = 'peachscan' baseUrl = 'https://hikariganai.xyz' - overrideVersionCode = 0 - isNsfw = false + overrideVersionCode = 28 } apply from: "$rootDir/common.gradle" diff --git a/src/pt/hikariganai/src/eu/kanade/tachiyomi/extension/pt/hikariganai/HikariGaNai.kt b/src/pt/hikariganai/src/eu/kanade/tachiyomi/extension/pt/hikariganai/HikariGaNai.kt index b75068b11..206d96fbd 100644 --- a/src/pt/hikariganai/src/eu/kanade/tachiyomi/extension/pt/hikariganai/HikariGaNai.kt +++ b/src/pt/hikariganai/src/eu/kanade/tachiyomi/extension/pt/hikariganai/HikariGaNai.kt @@ -1,15 +1,17 @@ package eu.kanade.tachiyomi.extension.pt.hikariganai -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 HikariGaNai : Madara( +class HikariGaNai : PeachScan( "Hikari Ga Nai", "https://hikariganai.xyz", "pt-BR", - dateFormat = SimpleDateFormat("d 'de' MMMM 'de' yyyy", Locale("pt", "BR")), ) { - override val useLoadMoreRequest = LoadMoreStrategy.Never - override val useNewChapterEndpoint = true + // Moved from Madara to PeachScan + override val versionId = 2 + + override val client = super.client.newBuilder() + .rateLimit(2) + .build() }