diff --git a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt index ca024b463a1..4e67a25e4ba 100644 --- a/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt +++ b/library/src/commonMain/kotlin/com/lagradost/cloudstream3/MainAPI.kt @@ -21,14 +21,11 @@ import com.lagradost.cloudstream3.utils.Coroutines.atomicListOf import com.lagradost.cloudstream3.utils.Coroutines.mainWork import com.lagradost.cloudstream3.utils.SubtitleHelper.fromCodeToLangTagIETF import com.lagradost.cloudstream3.utils.SubtitleHelper.fromLanguageToTagIETF -import com.lagradost.nicehttp.RequestBodyTypes import io.ktor.http.Url import io.ktor.http.URLBuilder import io.ktor.http.encodedPath import io.ktor.http.takeFrom import okhttp3.Interceptor -import okhttp3.MediaType.Companion.toMediaTypeOrNull -import okhttp3.RequestBody.Companion.toRequestBody import kotlinx.datetime.LocalDate import kotlinx.datetime.LocalTime import kotlinx.datetime.TimeZone @@ -322,10 +319,10 @@ object APIHolder { "search" to title, "sort" to "SEARCH_MATCH", "type" to "ANIME", - ) - ).toJson().toRequestBody(RequestBodyTypes.JSON.toMediaTypeOrNull()) + ).toJson() + ) - return app.post("https://graphql.anilist.co", requestBody = data) + return app.post("https://graphql.anilist.co", data = data) .parsedSafe() } }