mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: fixed Kimcartoon
This commit is contained in:
parent
5e71686299
commit
b6e3934593
2 changed files with 13 additions and 25 deletions
|
@ -700,20 +700,7 @@ object SoraExtractor : SoraStream() {
|
|||
fixUrl(iframe, kimcartoonAPI)
|
||||
).document.selectFirst("div#divContentVideo iframe")
|
||||
?.attr("src") ?: return
|
||||
loadExtractor(source, "$kimcartoonAPI/", subtitleCallback) { link ->
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
"Kimcartoon",
|
||||
"Kimcartoon",
|
||||
link.url,
|
||||
link.referer,
|
||||
link.quality,
|
||||
link.isM3u8,
|
||||
link.headers,
|
||||
link.extractorData
|
||||
)
|
||||
)
|
||||
}
|
||||
loadExtractor(source, "$kimcartoonAPI/", subtitleCallback, callback)
|
||||
}
|
||||
|
||||
suspend fun invokeSoraStream(
|
||||
|
@ -953,17 +940,12 @@ object SoraExtractor : SoraStream() {
|
|||
).parsedSafe<KisskhSources>()?.let { source ->
|
||||
listOf(source.video, source.thirdParty).apmap { link ->
|
||||
if (link?.contains(".m3u8") == true) {
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
"Kisskh",
|
||||
M3u8Helper.generateM3u8(
|
||||
"Kisskh",
|
||||
link,
|
||||
referer = "$kissKhAPI/",
|
||||
Qualities.P720.value,
|
||||
true,
|
||||
"$kissKhAPI/",
|
||||
headers = mapOf("Origin" to kissKhAPI)
|
||||
)
|
||||
)
|
||||
).forEach(callback)
|
||||
} else {
|
||||
loadExtractor(
|
||||
link?.substringBefore("=http") ?: return@apmap null,
|
||||
|
@ -2641,6 +2623,11 @@ class Sblongvu : StreamSB() {
|
|||
override var mainUrl = "https://sblongvu.com"
|
||||
}
|
||||
|
||||
class Keephealth : StreamSB() {
|
||||
override var name = "Kimcartoon"
|
||||
override var mainUrl = "https://keephealth.info"
|
||||
}
|
||||
|
||||
data class TitleSlug(
|
||||
val dotSlug: String? = null,
|
||||
val spaceSlug: String? = null,
|
||||
|
|
|
@ -13,5 +13,6 @@ class SoraStreamPlugin: Plugin() {
|
|||
registerMainAPI(SoraStreamLite())
|
||||
registerExtractorAPI(StreamM4u())
|
||||
registerExtractorAPI(Sblongvu())
|
||||
registerExtractorAPI(Keephealth())
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue