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 {
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"

View File

@ -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()
}