Skip to content

Commit

Permalink
Yet again the decryptor
Browse files Browse the repository at this point in the history
Seems like it the skipping was fixed but not he fact that it simply would stop mid song instead. Hopefully this the last update I need to make for the decryptor on this matter
  • Loading branch information
LuftVerbot committed Sep 18, 2024
1 parent a2b3eec commit 1942101
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ext/src/main/java/dev/brahmkshatriya/echo/extension/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ import io.ktor.utils.io.ByteChannel
import io.ktor.utils.io.close
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.launch
import okhttp3.ConnectionPool
import okhttp3.OkHttpClient
import okhttp3.Protocol
import okhttp3.Request
import okhttp3.coroutines.executeAsync
import java.io.ByteArrayOutputStream
import java.io.IOException
import java.security.MessageDigest
Expand Down Expand Up @@ -75,8 +73,6 @@ fun String.toMD5(): String {
return bytesToHex(bytes).lowercase()
}

@Suppress("NewApi")
@OptIn(ExperimentalCoroutinesApi::class)
suspend fun getByteStreamAudio(
scope: CoroutineScope,
streamable: Streamable,
Expand All @@ -97,7 +93,7 @@ suspend fun getByteStreamAudio(
.build()

val byteChannel = ByteChannel()
val response = clientWithTimeouts.newCall(request).executeAsync()
val response = clientWithTimeouts.newCall(request).execute()

scope.launch(Dispatchers.IO) {
try {
Expand Down

0 comments on commit 1942101

Please sign in to comment.