Fixed StreamingCommunity Provider & some starlive fixes (#81)

This commit is contained in:
antonydp 2023-02-02 00:31:01 +01:00 committed by GitHub
parent 9f160661c6
commit 4fc0e3ce4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 239 additions and 333 deletions

View file

@ -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%"
}
}

View file

@ -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
)
}
}