Skip to content

Commit 8573e38

Browse files
test add kuramanime
1 parent 3b3a2b1 commit 8573e38

5 files changed

Lines changed: 669 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version = 1
2+
3+
cloudstream {
4+
language = "id"
5+
authors = listOf("Miku")
6+
status = 1
7+
tvTypes = listOf(
8+
"Anime",
9+
"AnimeMovie",
10+
"OVA",
11+
)
12+
13+
iconUrl = "https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://v17.kuramanime.ink&size=%size%"
14+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest />
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
package com.kuramanime
2+
3+
import com.lagradost.cloudstream3.SubtitleFile
4+
import com.lagradost.cloudstream3.utils.ExtractorLink
5+
import com.lagradost.cloudstream3.utils.loadExtractor
6+
import com.lagradost.cloudstream3.utils.newExtractorLink
7+
import com.lagradost.cloudstream3.extractors.DoodLaExtractor
8+
import com.lagradost.cloudstream3.extractors.VidStack
9+
import kotlinx.coroutines.runBlocking
10+
11+
object KuramanimeExtractors {
12+
suspend fun loadKnownExtractor(
13+
url: String,
14+
serverName: String,
15+
referer: String,
16+
subtitleCallback: (SubtitleFile) -> Unit,
17+
callback: (ExtractorLink) -> Unit,
18+
) {
19+
runCatching {
20+
loadExtractor(url, referer, subtitleCallback) { link ->
21+
val finalName = if (link.name.equals(serverName, true)) {
22+
link.name
23+
} else {
24+
"$serverName - ${link.name}"
25+
}
26+
27+
runBlocking {
28+
callback.invoke(
29+
newExtractorLink(
30+
source = link.name,
31+
name = finalName,
32+
url = link.url,
33+
type = link.type,
34+
) {
35+
this.referer = link.referer.takeIf { it.isNotBlank() } ?: referer
36+
this.quality = link.quality
37+
this.headers = link.headers
38+
this.extractorData = link.extractorData
39+
}
40+
)
41+
}
42+
}
43+
}
44+
}
45+
}
46+
47+
class MyvidplayAz : DoodLaExtractor() {
48+
override var name = "MyVidPlay"
49+
override var mainUrl = "https://myvidplay.com"
50+
}
51+
52+
class Kuramavip : VidStack() {
53+
override var name = "Kuramavip"
54+
override var mainUrl = "https://kurama.rpmvip.com"
55+
override var requiresReferer = true
56+
}

0 commit comments

Comments
 (0)