Update HiAnime.kt

This commit is contained in:
Arkai1 2025-04-17 11:15:30 +05:30 committed by GitHub
parent f21489af9b
commit e240125371
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,6 +30,9 @@ class HiAnime : ZoroTheme(
private val megaCloudExtractor by lazy { MegaCloudExtractor(client, headers, preferences) }
override val baseUrl: String
get() = preferences.getString(PREF_DOMAIN_KEY, PREF_DOMAIN_DEFAULT) ?: PREF_DOMAIN_DEFAULT
override fun latestUpdatesRequest(page: Int): Request = GET(
"$baseUrl/recently-updated?page=$page",
docHeaders,
@ -67,8 +70,8 @@ class HiAnime : ZoroTheme(
ListPreference(screen.context).apply {
key = PREF_DOMAIN_KEY
title = "Preferred domain"
entries = arrayOf("hianimez.to", "hianime.to", "hianime.bz", "hianime.pe")
entryValues = arrayOf("https://hianimez.to", "https://hianime.to", "https://hianime.bz", "https://hianime.pe")
entries = arrayOf("hianimez.to", "hianime.to", "hianimez.is" "hianime.nz", "hianime.pe")
entryValues = arrayOf("https://hianimez.to", "https://hianime.to", "https://hianimez.is", "https://hianime.nz", "https://hianime.pe")
setDefaultValue(PREF_DOMAIN_DEFAULT)
summary = "%s"