[update] Comic sort policy

This commit is contained in:
rootacite
2025-10-29 20:14:07 +08:00
parent 7be18dd517
commit c3e0a23ed1
6 changed files with 84 additions and 7 deletions

View File

@@ -46,6 +46,9 @@ class ApiClient @Inject constructor(
fun getBase(): String{
return replaceAbyssProtocol(base)
}
fun getDomain(): String = domain
private var base: String = ""
private var domain: String = ""
private var cert: String = ""
@@ -236,7 +239,7 @@ class ApiClient @Inject constructor(
throw Exception("No reachable URL found")
}
domain = selectedUrl.toHttpUrlOrNull()?.host ?: ""
domain = replaceAbyssProtocol(selectedUrl).toHttpUrlOrNull()?.host ?: ""
cert = crt
base = selectedUrl
withContext(Dispatchers.IO)