mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Fix sora to pass build
This commit is contained in:
parent
39cca90e25
commit
031df9124f
2 changed files with 8 additions and 10 deletions
|
@ -127,7 +127,7 @@ object SoraExtractor : SoraStream() {
|
||||||
if (link.name == "VidSrc") Qualities.P1080.value else link.quality,
|
if (link.name == "VidSrc") Qualities.P1080.value else link.quality,
|
||||||
link.headers,
|
link.headers,
|
||||||
link.extractorData,
|
link.extractorData,
|
||||||
type = INFER_TYPE,
|
link.type,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ class YacienTV : MainAPI() {
|
||||||
logo,
|
logo,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
private fun Event.toSearchResponse(request: MainPageRequest, type: String? = null): SearchResponse? {
|
private fun Event.toSearchResponse(request: MainPageRequest, type: String? = null): SearchResponse {
|
||||||
Log.d("King", "SearchResp${request}")
|
Log.d("King", "SearchResp${request}")
|
||||||
|
|
||||||
return LiveSearchResponse(
|
return LiveSearchResponse(
|
||||||
|
@ -145,15 +145,14 @@ class YacienTV : MainAPI() {
|
||||||
this.plot = "${data.name} livestreams of ${data.category} category."
|
this.plot = "${data.name} livestreams of ${data.category} category."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var plotStr = ""
|
|
||||||
|
|
||||||
if (data.category == "Live Events") {
|
val plotStr: String = if (data.category == "Live Events") {
|
||||||
plotStr = "Teams: ${data.name}" +
|
"Teams: ${data.name}" +
|
||||||
"<br>Time: ${data.start_time}" +
|
"<br>Time: ${data.start_time}" +
|
||||||
"<br>Commentary: ${data.commentary}" +
|
"<br>Commentary: ${data.commentary}" +
|
||||||
"<br>Channel: ${data.channel}"
|
"<br>Channel: ${data.channel}"
|
||||||
} else {
|
} else {
|
||||||
plotStr = "${data.name} channel livestream of ${data.category} category."
|
"${data.name} channel livestream of ${data.category} category."
|
||||||
}
|
}
|
||||||
|
|
||||||
return LiveStreamLoadResponse(
|
return LiveStreamLoadResponse(
|
||||||
|
@ -176,11 +175,10 @@ class YacienTV : MainAPI() {
|
||||||
Log.d("King", "loadLinks:$data")
|
Log.d("King", "loadLinks:$data")
|
||||||
val linksData = parseJson<LinksData>(data)
|
val linksData = parseJson<LinksData>(data)
|
||||||
|
|
||||||
var decodedBody = ""
|
val decodedBody = if (linksData.category == "Live Events") {
|
||||||
if (linksData.category == "Live Events") {
|
getDecoded("$yacienTVAPI/event/${linksData.id}")
|
||||||
decodedBody = getDecoded("$yacienTVAPI/event/${linksData.id}")
|
|
||||||
} else {
|
} else {
|
||||||
decodedBody = getDecoded("$yacienTVAPI/channel/${linksData.id}")
|
getDecoded("$yacienTVAPI/channel/${linksData.id}")
|
||||||
}
|
}
|
||||||
|
|
||||||
parseJson<ChannelResults>(decodedBody).links?.map { element ->
|
parseJson<ChannelResults>(decodedBody).links?.map { element ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue