This commit is contained in:
hexated 2022-12-10 04:21:13 +07:00
parent 2876dea2d1
commit 489da5c5c4
2 changed files with 4 additions and 4 deletions

View file

@ -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,