mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
updated
This commit is contained in:
parent
0155aa2a20
commit
7d482b9509
3 changed files with 1 additions and 22 deletions
|
@ -595,7 +595,7 @@ suspend fun fetchSoraEpisodes(id: String, type: String, episode: Int?): EpisodeV
|
|||
}
|
||||
|
||||
fun upgradeSoraUrl(url: String) : String {
|
||||
val expiry = System.currentTimeMillis() * 60 * 60 * 12
|
||||
val expiry = System.currentTimeMillis() + (60 * 60 * 12 * 7)
|
||||
val mac = "fuckfuck".encode().hmacSha256("$expiry".encode()).hex()
|
||||
return "${url.replace(BuildConfig.SORAXA, BuildConfig.SORATED).substringBefore(".m3u8")}.m3u8?hdntl=exp=$expiry-acl=%2f*-data=hdntl-hmac=$mac"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue