This commit is contained in:
AntsyLich 2024-03-24 05:54:27 +06:00
parent e020ae5ed5
commit 6965e59a64
No known key found for this signature in database

View File

@ -2,19 +2,20 @@ package mihon.domain.extensionrepo.service
import androidx.core.net.toUri import androidx.core.net.toUri
import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.NetworkHelper
import eu.kanade.tachiyomi.network.awaitSuccess import eu.kanade.tachiyomi.network.awaitSuccess
import eu.kanade.tachiyomi.network.parseAs import eu.kanade.tachiyomi.network.parseAs
import kotlinx.serialization.json.Json import kotlinx.serialization.json.Json
import logcat.LogPriority import logcat.LogPriority
import mihon.domain.extensionrepo.model.ExtensionRepo import mihon.domain.extensionrepo.model.ExtensionRepo
import okhttp3.OkHttpClient
import tachiyomi.core.common.util.lang.withIOContext import tachiyomi.core.common.util.lang.withIOContext
import tachiyomi.core.common.util.system.logcat import tachiyomi.core.common.util.system.logcat
class ExtensionRepoService( class ExtensionRepoService(
private val client: OkHttpClient, networkHelper: NetworkHelper,
private val json: Json, private val json: Json,
) { ) {
val client = networkHelper.client
@Suppress("TooGenericExceptionCaught") @Suppress("TooGenericExceptionCaught")
suspend fun fetchRepoDetails( suspend fun fetchRepoDetails(