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

@ -678,7 +678,7 @@ object SoraExtractor : SoraStream() {
json.definitionList?.map { video ->
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,
).parsedSafe<SorastreamResponse>()?.data
@ -687,7 +687,7 @@ object SoraExtractor : SoraStream() {
this.name,
this.name,
media?.mediaUrl ?: return@map null,
"https://loklok.com/",
"",
getSoraQuality(media.currentDefinition ?: ""),
true,
)

View file

@ -41,13 +41,12 @@ import kotlin.collections.ArrayList
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 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 soraHeaders = mapOf(
"lang" to "en",
"versioncode" to "33",
"clienttype" to "android_tem3",
"clienttype" to "android_Official",
"deviceid" to getDeviceId(),
)