HikariScan: Migrate theme (#5616)

* Migrate theme

* Remove versionId
This commit is contained in:
Chopper 2024-10-22 23:08:40 -03:00 committed by Draff
parent f740c319ba
commit 18943c8c1f
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 6 additions and 8 deletions

View File

@ -1,9 +1,9 @@
ext { ext {
extName = 'Hikari Scan' extName = 'Hikari Scan'
extClass = '.HikariScan' extClass = '.HikariScan'
themePkg = 'mangathemesia' themePkg = 'madara'
baseUrl = 'https://hikariscan.org' baseUrl = 'https://hikariscan.org'
overrideVersionCode = 2 overrideVersionCode = 0
isNsfw = true isNsfw = true
} }

View File

@ -1,22 +1,20 @@
package eu.kanade.tachiyomi.extension.pt.hikariscan package eu.kanade.tachiyomi.extension.pt.hikariscan
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimitHost import eu.kanade.tachiyomi.network.interceptor.rateLimitHost
import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.HttpUrl.Companion.toHttpUrl
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
class HikariScan : MangaThemesia( class HikariScan : Madara(
"Hikari Scan", "Hikari Scan",
"https://hikariscan.org", "https://hikariscan.org",
"pt-BR", "pt-BR",
dateFormat = SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")), dateFormat = SimpleDateFormat("MMM dd, yyyy", Locale("pt", "BR")),
) { ) {
override val client = super.client.newBuilder() override val client = super.client.newBuilder()
.rateLimitHost(baseUrl.toHttpUrl(), 1, 2) .rateLimitHost(baseUrl.toHttpUrl(), 1, 2)
.build() .build()
// =========================== Manga Details ============================ override val useLoadMoreRequest = LoadMoreStrategy.Never
override val altNamePrefix = "Títulos alternativos: "
override val seriesAuthorSelector = ".tsinfo .imptdt:contains(autor) i"
} }