This commit is contained in:
hexated 2023-05-08 19:44:16 +07:00
parent 0155aa2a20
commit 7d482b9509
3 changed files with 1 additions and 22 deletions

View file

@ -64,7 +64,6 @@ jobs:
- name: Move Loklok
run: |
rm $GITHUB_WORKSPACE/builds/Loklok.cs3 || true
cd $GITHUB_WORKSPACE/stored
cp **/Loklok.cs3 $GITHUB_WORKSPACE/builds
- name: Push builds

View file

@ -176,26 +176,6 @@ class LayarKacaProvider : MainAPI() {
): Boolean {
val document = app.get(data).document
// maybe will need this in future
// val sources = if (data.contains("-episode-")) {
// document.select("script").mapNotNull { script ->
// if (script.data().contains("var data =")) {
// val scriptData =
// script.toString().substringAfter("var data = '").substringBefore("';")
// Jsoup.parse(scriptData).select("li").map {
// fixUrl(it.select("a").attr("href"))
// }
// } else {
// null
// }
// }[0]
// } else {
// document.select("ul#loadProviders > li").map {
// fixUrl(it.select("a").attr("href"))
// }
// }
document.select("ul#loadProviders > li").map {
fixUrl(it.select("a").attr("href"))
}.apmap {

View file

@ -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"
}