mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Kuronime: fix video source
This commit is contained in:
parent
2dd73dd012
commit
2c3bab56c5
2 changed files with 8 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 16
|
||||
version = 17
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -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<Sources>(decrypt?.toJsonFormat())?.src?.replace("\\", "")
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
this.name,
|
||||
M3u8Helper.generateM3u8(
|
||||
this.name,
|
||||
source ?: return@argamap,
|
||||
"$animekuUrl/",
|
||||
Qualities.P1080.value,
|
||||
true,
|
||||
headers = mapOf("Origin" to animekuUrl)
|
||||
)
|
||||
)
|
||||
).forEach(callback)
|
||||
},
|
||||
{
|
||||
val decrypt = AesHelper.cryptoAESHandler(
|
||||
|
|
Loading…
Reference in a new issue