Update HiAnime.kt

This commit is contained in:
Arkai1 2025-04-10 11:16:47 +05:30 committed by GitHub
parent 9b7532f5f9
commit 465fc34ae4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ class HiAnime :
ZoroTheme( ZoroTheme(
"en", "en",
"HiAnime", "HiAnime",
getPrefBaseUrl(), HiAnime.BASE_URL,
hosterNames = listOf("HD-1", "HD-2", "StreamTape"), hosterNames = listOf("HD-1", "HD-2", "StreamTape"),
) { ) {
@ -84,8 +84,6 @@ class HiAnime :
Injekt.get<Application>().getSharedPreferences("hianime", 0) Injekt.get<Application>().getSharedPreferences("hianime", 0)
} }
private fun getPrefBaseUrl(): String { val BASE_URL: String
return preferences.getString(PREF_BASE_URL_KEY, DEFAULT_BASE_URL) ?: DEFAULT_BASE_URL get() = preferences.getString(PREF_BASE_URL_KEY, DEFAULT_BASE_URL) ?: DEFAULT_BASE_URL
}
} }
}