mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
rebahin: update domain
This commit is contained in:
parent
01899b2b8c
commit
f3f8c8e59a
5 changed files with 337 additions and 496 deletions
File diff suppressed because it is too large
Load diff
|
@ -477,7 +477,7 @@ suspend fun invokeSmashyFm(
|
|||
M3u8Helper.generateM3u8(
|
||||
"Smashy [$name]",
|
||||
source.removeProxy(),
|
||||
"https://vidstream.pro/"
|
||||
"https://vidplay.site/"
|
||||
).forEach(callback)
|
||||
|
||||
}
|
||||
|
@ -1038,6 +1038,33 @@ fun generateWpKey(r: String, m: String): String {
|
|||
return n
|
||||
}
|
||||
|
||||
suspend fun loadCustomTagExtractor(
|
||||
tag: String? = null,
|
||||
url: String,
|
||||
referer: String? = null,
|
||||
subtitleCallback: (SubtitleFile) -> Unit,
|
||||
callback: (ExtractorLink) -> Unit,
|
||||
quality: Int? = null,
|
||||
) {
|
||||
loadExtractor(url, referer, subtitleCallback) { link ->
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
link.source,
|
||||
"${link.name} $tag",
|
||||
link.url,
|
||||
link.referer,
|
||||
when (link.type) {
|
||||
ExtractorLinkType.M3U8 -> link.quality
|
||||
else -> quality ?: link.quality
|
||||
},
|
||||
link.type,
|
||||
link.headers,
|
||||
link.extractorData
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun loadCustomExtractor(
|
||||
name: String? = null,
|
||||
url: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue