Skip to content

Commit

Permalink
Feat(lib/ChillxExtractor): clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark25 committed Sep 18, 2024
1 parent da6eb85 commit 046b9b3
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 046b9b3

Please sign in to comment.