mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
.
This commit is contained in:
parent
2876dea2d1
commit
489da5c5c4
2 changed files with 4 additions and 4 deletions
|
@ -229,7 +229,7 @@ class Loklok : MainAPI() {
|
|||
): Boolean {
|
||||
val res = parseJson<UrlEpisode>(data)
|
||||
|
||||
res.definitionList?.map { video ->
|
||||
res.definitionList?.apmap { video ->
|
||||
val body = """[{"category":${res.category},"contentId":"${res.id}","episodeId":${res.epId},"definition":"${video.code}"}]""".toRequestBody(RequestBodyTypes.JSON.toMediaTypeOrNull())
|
||||
val response = app.post(
|
||||
"$apiUrl/media/bathGetplayInfo",
|
||||
|
@ -241,7 +241,7 @@ class Loklok : MainAPI() {
|
|||
ExtractorLink(
|
||||
this.name,
|
||||
this.name,
|
||||
json?.mediaUrl ?: return@map null,
|
||||
json?.mediaUrl ?: return@apmap null,
|
||||
"",
|
||||
getQuality(json.currentDefinition ?: ""),
|
||||
isM3u8 = true,
|
||||
|
|
|
@ -832,7 +832,7 @@ object SoraExtractor : SoraStream() {
|
|||
)
|
||||
}
|
||||
|
||||
json?.definitionList?.map { video ->
|
||||
json?.definitionList?.apmap { video ->
|
||||
val body = """[{"category":$type,"contentId":"$id","episodeId":${json.id},"definition":"${video.code}"}]""".toRequestBody(
|
||||
RequestBodyTypes.JSON.toMediaTypeOrNull())
|
||||
val response = app.post(
|
||||
|
@ -844,7 +844,7 @@ object SoraExtractor : SoraStream() {
|
|||
ExtractorLink(
|
||||
this.name,
|
||||
this.name,
|
||||
response?.mediaUrl ?: return@map null,
|
||||
response?.mediaUrl ?: return@apmap null,
|
||||
"",
|
||||
getSoraQuality(response.currentDefinition ?: ""),
|
||||
isM3u8 = true,
|
||||
|
|
Loading…
Reference in a new issue