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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue