mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small fix
This commit is contained in:
parent
1b9b9fae18
commit
f5612b146b
4 changed files with 7 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 24
|
||||
version = 25
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue