Merge pull request #918 from Arkai1/Hianime

(en/zoro) Some changes and fixes
This commit is contained in:
GregiPlays 2025-04-17 09:05:28 +02:00 committed by GitHub
commit 6461450cf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -3,7 +3,7 @@ ext {
extClass = '.HiAnime' extClass = '.HiAnime'
themePkg = 'zorotheme' themePkg = 'zorotheme'
baseUrl = 'https://hianimez.to' baseUrl = 'https://hianimez.to'
overrideVersionCode = 49 overrideVersionCode = 50
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View file

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