2
1
Fork 1
mirror of https://github.com/yoyzo/arab synced 2024-08-15 03:15:00 +00:00

idk why but that fixes it

This commit is contained in:
Zaw 2023-02-15 22:30:24 +03:00
parent 3c0e78cacc
commit b408afe008
16 changed files with 88 additions and 4 deletions

View file

@ -1,4 +1,10 @@
plugins {
id("org.jetbrains.kotlin.android")
}
version = 3
dependencies {
implementation("androidx.core:core-ktx:+")
}
cloudstream {
description = "Some LinkBox links are broken idk why"

View file

@ -157,8 +157,8 @@ class EgyDead : MainAPI() {
callback: (ExtractorLink) -> Unit
): Boolean {
val doc = app.post(data, data = mapOf("View" to "1")).document
doc.select(".donwload-servers-list > li").apmap {
val url = it.select("a")
doc.select(".donwload-servers-list > li").apmap { element ->
val url = element.select("a").attr("href")
if(url.contains("www.linkbox.to")) {
val apiUrl = "https://" + URI(url).host + "/api/file/detail?itemId=" + url.substringAfter("/file/")
val json = app.get(apiUrl).parsed<LinkBox>()
@ -169,7 +169,7 @@ class EgyDead : MainAPI() {
"LinkBox " + bytesToHumanReadableSize(it.size ?: 0.0),
it.url ?: return@forEach,
mainUrl,
it.resolution.replace("p",""),
it.resolution?.replace("p","")?.toInt() ?: Qualities.Unknown.value,
false
)
)