HikariGaNai: Migrate theme (#5527)

Migrate theme
This commit is contained in:
Chopper 2024-10-15 04:00:24 -03:00 committed by Draff
parent 1767c5a29d
commit 61f7d83728
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 11 additions and 10 deletions

View File

@ -1,10 +1,9 @@
ext { ext {
extName = 'Hikari Ga Nai' extName = 'Hikari Ga Nai'
extClass = '.HikariGaNai' extClass = '.HikariGaNai'
themePkg = 'madara' themePkg = 'peachscan'
baseUrl = 'https://hikariganai.xyz' baseUrl = 'https://hikariganai.xyz'
overrideVersionCode = 0 overrideVersionCode = 28
isNsfw = false
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -1,15 +1,17 @@
package eu.kanade.tachiyomi.extension.pt.hikariganai package eu.kanade.tachiyomi.extension.pt.hikariganai
import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.multisrc.peachscan.PeachScan
import java.text.SimpleDateFormat import eu.kanade.tachiyomi.network.interceptor.rateLimit
import java.util.Locale
class HikariGaNai : Madara( class HikariGaNai : PeachScan(
"Hikari Ga Nai", "Hikari Ga Nai",
"https://hikariganai.xyz", "https://hikariganai.xyz",
"pt-BR", "pt-BR",
dateFormat = SimpleDateFormat("d 'de' MMMM 'de' yyyy", Locale("pt", "BR")),
) { ) {
override val useLoadMoreRequest = LoadMoreStrategy.Never // Moved from Madara to PeachScan
override val useNewChapterEndpoint = true override val versionId = 2
override val client = super.client.newBuilder()
.rateLimit(2)
.build()
} }