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
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -64,7 +64,6 @@ jobs:
|
||||||
- name: Move Loklok
|
- name: Move Loklok
|
||||||
run: |
|
run: |
|
||||||
rm $GITHUB_WORKSPACE/builds/Loklok.cs3 || true
|
rm $GITHUB_WORKSPACE/builds/Loklok.cs3 || true
|
||||||
cd $GITHUB_WORKSPACE/stored
|
|
||||||
cp **/Loklok.cs3 $GITHUB_WORKSPACE/builds
|
cp **/Loklok.cs3 $GITHUB_WORKSPACE/builds
|
||||||
|
|
||||||
- name: Push builds
|
- name: Push builds
|
||||||
|
|
|
@ -176,26 +176,6 @@ class LayarKacaProvider : MainAPI() {
|
||||||
): Boolean {
|
): Boolean {
|
||||||
|
|
||||||
val document = app.get(data).document
|
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 {
|
document.select("ul#loadProviders > li").map {
|
||||||
fixUrl(it.select("a").attr("href"))
|
fixUrl(it.select("a").attr("href"))
|
||||||
}.apmap {
|
}.apmap {
|
||||||
|
|
|
@ -595,7 +595,7 @@ suspend fun fetchSoraEpisodes(id: String, type: String, episode: Int?): EpisodeV
|
||||||
}
|
}
|
||||||
|
|
||||||
fun upgradeSoraUrl(url: String) : String {
|
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()
|
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"
|
return "${url.replace(BuildConfig.SORAXA, BuildConfig.SORATED).substringBefore(".m3u8")}.m3u8?hdntl=exp=$expiry-acl=%2f*-data=hdntl-hmac=$mac"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue