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
|
// use an integer for version numbers
|
||||||
version = 24
|
version = 25
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -34,7 +34,7 @@ class Loklok : MainAPI() {
|
||||||
private val headers = mutableMapOf(
|
private val headers = mutableMapOf(
|
||||||
"lang" to "en",
|
"lang" to "en",
|
||||||
"versioncode" to "33",
|
"versioncode" to "33",
|
||||||
"clienttype" to "android_tem3",
|
"clienttype" to "android_Official",
|
||||||
"deviceid" to getDeviceId()
|
"deviceid" to getDeviceId()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ class Loklok : MainAPI() {
|
||||||
RequestBodyTypes.JSON.toMediaTypeOrNull()
|
RequestBodyTypes.JSON.toMediaTypeOrNull()
|
||||||
)
|
)
|
||||||
val json = app.get(
|
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,
|
headers = headers,
|
||||||
).parsedSafe<PreviewResponse>()?.data
|
).parsedSafe<PreviewResponse>()?.data
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
|
@ -239,7 +239,7 @@ class Loklok : MainAPI() {
|
||||||
this.name,
|
this.name,
|
||||||
this.name,
|
this.name,
|
||||||
json?.mediaUrl ?: return@apmap null,
|
json?.mediaUrl ?: return@apmap null,
|
||||||
"https://loklok.com/",
|
"",
|
||||||
getQuality(json.currentDefinition ?: ""),
|
getQuality(json.currentDefinition ?: ""),
|
||||||
isM3u8 = true,
|
isM3u8 = true,
|
||||||
)
|
)
|
||||||
|
|
|
@ -678,7 +678,7 @@ object SoraExtractor : SoraStream() {
|
||||||
|
|
||||||
json.definitionList?.map { video ->
|
json.definitionList?.map { video ->
|
||||||
val media = app.get(
|
val media = app.get(
|
||||||
"$soraSecondAPI/movieDrama/getPlayInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}",
|
"$soraAPI/media/previewInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}",
|
||||||
headers = soraHeaders,
|
headers = soraHeaders,
|
||||||
).parsedSafe<SorastreamResponse>()?.data
|
).parsedSafe<SorastreamResponse>()?.data
|
||||||
|
|
||||||
|
@ -687,7 +687,7 @@ object SoraExtractor : SoraStream() {
|
||||||
this.name,
|
this.name,
|
||||||
this.name,
|
this.name,
|
||||||
media?.mediaUrl ?: return@map null,
|
media?.mediaUrl ?: return@map null,
|
||||||
"https://loklok.com/",
|
"",
|
||||||
getSoraQuality(media.currentDefinition ?: ""),
|
getSoraQuality(media.currentDefinition ?: ""),
|
||||||
true,
|
true,
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,13 +41,12 @@ import kotlin.collections.ArrayList
|
||||||
import kotlin.math.min
|
import kotlin.math.min
|
||||||
|
|
||||||
val soraAPI = base64DecodeAPI("cA==YXA=cy8=Y20=di8=LnQ=b2s=a2w=bG8=aS4=YXA=ZS0=aWw=b2I=LW0=Z2E=Ly8=czo=dHA=aHQ=")
|
val soraAPI = base64DecodeAPI("cA==YXA=cy8=Y20=di8=LnQ=b2s=a2w=bG8=aS4=YXA=ZS0=aWw=b2I=LW0=Z2E=Ly8=czo=dHA=aHQ=")
|
||||||
val soraSecondAPI = base64DecodeAPI("cGM=Yi8=d2U=cy8=Y20=di8=LnQ=b2s=a2w=bG8=aS4=YXA=ZS0=aWw=b2I=LW0=Z2E=Ly8=czo=dHA=aHQ=")
|
|
||||||
val soraBackupAPI = base64DecodeAPI("dg==LnQ=bGw=aGk=dGM=dXM=Lmo=b2s=a2w=bG8=Ly8=czo=dHA=aHQ=")
|
val soraBackupAPI = base64DecodeAPI("dg==LnQ=bGw=aGk=dGM=dXM=Lmo=b2s=a2w=bG8=Ly8=czo=dHA=aHQ=")
|
||||||
|
|
||||||
val soraHeaders = mapOf(
|
val soraHeaders = mapOf(
|
||||||
"lang" to "en",
|
"lang" to "en",
|
||||||
"versioncode" to "33",
|
"versioncode" to "33",
|
||||||
"clienttype" to "android_tem3",
|
"clienttype" to "android_Official",
|
||||||
"deviceid" to getDeviceId(),
|
"deviceid" to getDeviceId(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue