diff --git a/KuronimeProvider/build.gradle.kts b/KuronimeProvider/build.gradle.kts index 5b95951e..84d6863e 100644 --- a/KuronimeProvider/build.gradle.kts +++ b/KuronimeProvider/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 16 +version = 17 cloudstream { diff --git a/KuronimeProvider/src/main/kotlin/com/hexated/KuronimeProvider.kt b/KuronimeProvider/src/main/kotlin/com/hexated/KuronimeProvider.kt index 1a49aaee..70e75127 100644 --- a/KuronimeProvider/src/main/kotlin/com/hexated/KuronimeProvider.kt +++ b/KuronimeProvider/src/main/kotlin/com/hexated/KuronimeProvider.kt @@ -8,7 +8,7 @@ import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer import com.lagradost.cloudstream3.extractors.helper.AesHelper import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson import com.lagradost.cloudstream3.utils.ExtractorLink -import com.lagradost.cloudstream3.utils.Qualities +import com.lagradost.cloudstream3.utils.M3u8Helper import com.lagradost.cloudstream3.utils.getQualityFromName import com.lagradost.cloudstream3.utils.loadExtractor import org.jsoup.nodes.Element @@ -197,17 +197,12 @@ class KuronimeProvider : MainAPI() { ) val source = tryParseJson(decrypt?.toJsonFormat())?.src?.replace("\\", "") - callback.invoke( - ExtractorLink( - this.name, - this.name, - source ?: return@argamap, - "$animekuUrl/", - Qualities.P1080.value, - true, - headers = mapOf("Origin" to animekuUrl) - ) - ) + M3u8Helper.generateM3u8( + this.name, + source ?: return@argamap, + "$animekuUrl/", + headers = mapOf("Origin" to animekuUrl) + ).forEach(callback) }, { val decrypt = AesHelper.cryptoAESHandler(