Update HiAnime.kt
This commit is contained in:
parent
c5aac9174a
commit
d10a57614b
1 changed files with 10 additions and 0 deletions
|
@ -23,6 +23,16 @@ class HiAnime : ZoroTheme(
|
|||
|
||||
override val ajaxRoute = "/v2"
|
||||
|
||||
// Add baseUrl logic here
|
||||
override val baseUrl by lazy {
|
||||
val customDomain = preferences.getString(PREF_CUSTOM_DOMAIN_KEY, null)
|
||||
if (customDomain.isNullOrBlank()) {
|
||||
preferences.getString(PREF_DOMAIN_KEY, PREF_DOMAIN_DEFAULT)!!
|
||||
} else {
|
||||
customDomain
|
||||
}
|
||||
}
|
||||
|
||||
private val streamtapeExtractor by lazy { StreamTapeExtractor(client) }
|
||||
private val megaCloudExtractor by lazy { MegaCloudExtractor(client, headers, preferences) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue