Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import com.lagradost.cloudstream3.base64DecodeArray
import com.lagradost.cloudstream3.utils.AppUtils.tryParseJson
import com.lagradost.cloudstream3.utils.ExtractorApi
import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.M3u8Helper
import com.lagradost.cloudstream3.utils.ExtractorLinkType
import com.lagradost.cloudstream3.utils.Qualities
import com.lagradost.cloudstream3.utils.newExtractorLink
import java.net.URI
import java.nio.charset.StandardCharsets
import javax.crypto.Cipher
Expand Down Expand Up @@ -116,16 +118,19 @@ open class ByseSX : ExtractorApi() {
) {
val refererUrl = getBaseUrl(url)
val playbackRoot = getPlayback(url) ?: return
val streamUrl = decryptPlayback(playbackRoot.playback) ?: return


val headers = mapOf("Referer" to refererUrl)
M3u8Helper.generateM3u8(
name,
streamUrl,
mainUrl,
headers = headers
).forEach(callback)
val streamUrl = decryptPlayback(playbackRoot.playback) ?: return

callback.invoke(
newExtractorLink(
source = this.name,
name = this.name,
url = streamUrl,
type = ExtractorLinkType.M3U8
) {
this.referer = url
this.quality = Qualities.Unknown.value
}
)
}
}

Expand Down