small fix

This commit is contained in:
hexated 2023-04-15 02:22:10 +07:00
parent 1b9b9fae18
commit f5612b146b
4 changed files with 7 additions and 8 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 24
version = 25
cloudstream {

View file

@ -34,7 +34,7 @@ class Loklok : MainAPI() {
private val headers = mutableMapOf(
"lang" to "en",
"versioncode" to "33",
"clienttype" to "android_tem3",
"clienttype" to "android_Official",
"deviceid" to getDeviceId()
)
@ -231,7 +231,7 @@ class Loklok : MainAPI() {
RequestBodyTypes.JSON.toMediaTypeOrNull()
)
val json = app.get(
"$pcApiUrl/movieDrama/getPlayInfo?category=${res.category}&contentId=${res.id}&episodeId=${res.epId}&definition=${video.code}",
"$apiUrl/media/previewInfo?category=${res.category}&contentId=${res.id}&episodeId=${res.epId}&definition=${video.code}",
headers = headers,
).parsedSafe<PreviewResponse>()?.data
callback.invoke(
@ -239,7 +239,7 @@ class Loklok : MainAPI() {
this.name,
this.name,
json?.mediaUrl ?: return@apmap null,
"https://loklok.com/",
"",
getQuality(json.currentDefinition ?: ""),
isM3u8 = true,
)