Feat(lib/ChillxExtractor): clear
This commit is contained in:
parent
8b11adcfad
commit
ed0bf5b8ba
1 changed files with 0 additions and 9 deletions
|
@ -13,7 +13,6 @@ import kotlinx.serialization.json.Json
|
|||
import okhttp3.Headers
|
||||
import okhttp3.OkHttpClient
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
import java.net.URI
|
||||
|
||||
class ChillxExtractor(private val client: OkHttpClient, private val headers: Headers) {
|
||||
private val json: Json by injectLazy()
|
||||
|
@ -75,14 +74,6 @@ class ChillxExtractor(private val client: OkHttpClient, private val headers: Hea
|
|||
}
|
||||
}
|
||||
|
||||
private fun String.getHost(): String {
|
||||
return fixTitle(URI(this).host.substringBeforeLast(".").substringAfterLast("."))
|
||||
}
|
||||
|
||||
private fun fixTitle(title: String): String {
|
||||
return title.replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }
|
||||
}
|
||||
|
||||
@Serializable
|
||||
data class CryptoInfo(
|
||||
@SerialName("ct") val ciphertext: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue