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

some of them might work

This commit is contained in:
Zaw 2023-02-15 22:10:40 +03:00
parent cbd39e1c35
commit 6c34ee698e
6 changed files with 34 additions and 11 deletions

View file

@ -1,4 +1,4 @@
version = 2
version = 3
cloudstream {
description = ""

View file

@ -7,7 +7,7 @@ import org.jsoup.nodes.Element
class ArabSeed : MainAPI() {
override var lang = "ar"
override var mainUrl = "https://m5.arabseed.ink"
override var mainUrl = "https://e.arabseed.ink"
override var name = "ArabSeed"
override val usesWebView = false
override val hasMainPage = true

View file

@ -1,4 +1,4 @@
version = 2
version = 3
cloudstream {
description = "Some LinkBox links are broken idk why"

View file

@ -128,15 +128,19 @@ class EgyDead : MainAPI() {
}
}
data class LinkBox (
@JsonProperty("data" ) var data : Data? = Data(),
@JsonProperty("data" ) var data : Data? = Data(),
)
data class Data (
@JsonProperty("rList" ) var rList : ArrayList<RList> = arrayListOf(),
@JsonProperty("itemInfo" ) var itemInfo : ItemInfo? = ItemInfo(),
)
data class RList (
data class ItemInfo (
@JsonProperty("resolutionList" ) var resolutionList : ArrayList<ResolutionList> = arrayListOf(),
)
data class ResolutionList (
@JsonProperty("resolution" ) var resolution : String? = null,
@JsonProperty("size" ) var size : Double? = null,
// @JsonProperty("sub_type" ) var subType : String? = null,
@JsonProperty("sub_type" ) var subType : String? = null,
@JsonProperty("url" ) var url : String? = null,
)
@ -153,14 +157,33 @@ 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")
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>()
json.data?.itemInfo?.resolutionList?.forEach {
callback.invoke(
ExtractorLink(
this.name,
"LinkBox " + bytesToHumanReadableSize(it.size ?: 0.0),
it.url ?: return@forEach,
mainUrl,
it.resolution.replace("p",""),
false
)
)
}
} else loadExtractor(url, data, subtitleCallback, callback)
}
val watchList = doc.select("ul.serversList > li")
watchList.apmap { li ->
val iframeUrl = li.attr("data-link")
val quality = li.select("small").text().getIntFromText() ?: Qualities.Unknown.value
if(iframeUrl.contains("www.linkbox.to")) {
val apiUrl = "https://" + URI(iframeUrl).host + "/api/open/get_url?itemId=" + iframeUrl.substringAfter("id=").substringBefore("&")
val apiUrl = "https://" + URI(iframeUrl).host + "/api/file/detail?itemId=" + iframeUrl.substringAfter("id=").substringBefore("&")
val json = app.get(apiUrl).parsed<LinkBox>()
json.data?.rList?.forEach {
json.data?.itemInfo?.resolutionList?.forEach {
callback.invoke(
ExtractorLink(
this.name,

View file

@ -1,4 +1,4 @@
version = 5
version = 6
cloudstream {
description = ""

View file

@ -10,7 +10,7 @@ import org.jsoup.nodes.Element
class MyCima : MainAPI() {
override var lang = "ar"
override var mainUrl = "https://mycima.tv"
override var mainUrl = "https://wecima.tube"
override var name = "MyCima"
override val usesWebView = false
override val hasMainPage = true