Skip to content
Merged
Show file tree
Hide file tree
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 @@ -27,7 +27,7 @@ open class CloudMailRu : ExtractorApi() {
"Origin" to mainUrl,
"User-Agent" to USER_AGENT,
)
val vidId = url.substringAfter("public/").toByteArray()
val vidId = url.substringAfter("public/").encodeToByteArray()
val vidIdEnc = base64Encode(vidId)
val videoReq = app.get(url, headers=headers).text
val regex = Regex(pattern = "videowl_view\":\\{\"count\":\"1\",\"url\":\"([^\"]*)\"\\}", options = setOf(RegexOption.IGNORE_CASE))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ open class HDMomPlayer : ExtractorApi() {
if (bePlayer != null) {
val bePlayerPass = bePlayer.get(1)
val bePlayerData = bePlayer.get(2)
val encrypted = AesHelper.cryptoAESHandler(bePlayerData, bePlayerPass.toByteArray(), false)?.replace("\\", "") ?: throw ErrorLoadingException("failed to decrypt")
val encrypted = AesHelper.cryptoAESHandler(bePlayerData, bePlayerPass.encodeToByteArray(), false)?.replace("\\", "") ?: throw ErrorLoadingException("failed to decrypt")

m3uLink = Regex("""video_location\":\"([^\"]+)""").find(encrypted)?.groupValues?.get(1)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ object M3u8Helper2 {
encryptionUri = "${getParentLink(playlistStream.streamUrl)}/$encryptionUri"
}

encryptionIv = match[3].toByteArray()
encryptionIv = match[3].encodeToByteArray()
val encryptionKeyResponse =
app.get(encryptionUri, headers = playlistStream.headers, verify = false)
val body = encryptionKeyResponse.body
Expand Down