mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small fix SoraExtractor
This commit is contained in:
parent
76d996e442
commit
7f6a8307de
1 changed files with 7 additions and 2 deletions
|
@ -407,10 +407,15 @@ object SoraExtractor : SoraStream() {
|
|||
?.substringAfter("vhash, {")?.substringBefore("}, false")
|
||||
|
||||
tryParseJson<HdMovieBoxSource>("{$script}").let { source ->
|
||||
val disk = if(source?.videoDisk == null) {
|
||||
""
|
||||
} else {
|
||||
base64Encode(source.videoDisk.toString().toByteArray())
|
||||
}
|
||||
val link = getBaseUrl(iframe) + source?.videoUrl?.replace(
|
||||
"\\",
|
||||
""
|
||||
) + "?s=${source?.videoServer}&d=${base64Encode(source?.videoDisk?.toByteArray() ?: return)}"
|
||||
) + "?s=${source?.videoServer}&d=$disk"
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
"HDMovieBox",
|
||||
|
@ -545,7 +550,7 @@ suspend fun loadLinksWithWebView(
|
|||
data class HdMovieBoxSource(
|
||||
@JsonProperty("videoUrl") val videoUrl: String? = null,
|
||||
@JsonProperty("videoServer") val videoServer: String? = null,
|
||||
@JsonProperty("videoDisk") val videoDisk: String? = null,
|
||||
@JsonProperty("videoDisk") val videoDisk: Any? = null,
|
||||
)
|
||||
|
||||
data class HdMovieBoxIframe(
|
||||
|
|
Loading…
Reference in a new issue