mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Fixed StreamingCommunity Provider & some starlive fixes (#81)
This commit is contained in:
parent
9f160661c6
commit
4fc0e3ce4b
5 changed files with 239 additions and 333 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
@ -22,4 +22,4 @@ cloudstream {
|
|||
)
|
||||
|
||||
iconUrl = "https://www.google.com/s2/favicons?domain=starlive.xyz&sz=%size%"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ class StarLiveProvider : MainAPI() {
|
|||
.map { LinkParser(
|
||||
fixUrl(it.selectFirst("a")?.attr("href")?:""),
|
||||
it.attr("class"),
|
||||
it.selectFirst("span")?.text()?:""
|
||||
it.selectFirst("b")?.text()?:""
|
||||
) }
|
||||
val dayMatch = this.previousElementSiblings().toList().firstOrNull() { it.`is`("h3") }?.text()
|
||||
|
||||
|
@ -107,7 +107,7 @@ class StarLiveProvider : MainAPI() {
|
|||
ExtractorLink(
|
||||
source = this.name,
|
||||
name = data.name + " - " + data.language,
|
||||
url = streamUrl,
|
||||
url = fixUrl(streamUrl),
|
||||
quality = Qualities.Unknown.value,
|
||||
referer = referrerLink,
|
||||
isM3u8 = true
|
||||
|
@ -123,7 +123,7 @@ class StarLiveProvider : MainAPI() {
|
|||
subtitleCallback: (SubtitleFile) -> Unit,
|
||||
callback: (ExtractorLink) -> Unit
|
||||
): Boolean {
|
||||
tryParseJson<MatchParser>(data)?.linkData?.map { link ->
|
||||
tryParseJson<MatchParser>(data)?.linkData?.apmap { link ->
|
||||
extractVideoLinks(link, callback)
|
||||
}
|
||||
|
||||
|
@ -147,4 +147,4 @@ class StarLiveProvider : MainAPI() {
|
|||
@JsonProperty("matchData") val MatchData: MatchDataParser
|
||||
)
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue