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:
parent
cbd39e1c35
commit
6c34ee698e
6 changed files with 34 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
||||||
version = 2
|
version = 3
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
description = ""
|
description = ""
|
||||||
|
|
|
@ -7,7 +7,7 @@ import org.jsoup.nodes.Element
|
||||||
|
|
||||||
class ArabSeed : MainAPI() {
|
class ArabSeed : MainAPI() {
|
||||||
override var lang = "ar"
|
override var lang = "ar"
|
||||||
override var mainUrl = "https://m5.arabseed.ink"
|
override var mainUrl = "https://e.arabseed.ink"
|
||||||
override var name = "ArabSeed"
|
override var name = "ArabSeed"
|
||||||
override val usesWebView = false
|
override val usesWebView = false
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
version = 2
|
version = 3
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
description = "Some LinkBox links are broken idk why"
|
description = "Some LinkBox links are broken idk why"
|
||||||
|
|
|
@ -128,15 +128,19 @@ class EgyDead : MainAPI() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data class LinkBox (
|
data class LinkBox (
|
||||||
@JsonProperty("data" ) var data : Data? = Data(),
|
@JsonProperty("data" ) var data : Data? = Data(),
|
||||||
)
|
)
|
||||||
data class 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("resolution" ) var resolution : String? = null,
|
||||||
@JsonProperty("size" ) var size : Double? = 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,
|
@JsonProperty("url" ) var url : String? = null,
|
||||||
|
|
||||||
)
|
)
|
||||||
|
@ -153,14 +157,33 @@ class EgyDead : MainAPI() {
|
||||||
callback: (ExtractorLink) -> Unit
|
callback: (ExtractorLink) -> Unit
|
||||||
): Boolean {
|
): Boolean {
|
||||||
val doc = app.post(data, data = mapOf("View" to "1")).document
|
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")
|
val watchList = doc.select("ul.serversList > li")
|
||||||
watchList.apmap { li ->
|
watchList.apmap { li ->
|
||||||
val iframeUrl = li.attr("data-link")
|
val iframeUrl = li.attr("data-link")
|
||||||
val quality = li.select("small").text().getIntFromText() ?: Qualities.Unknown.value
|
val quality = li.select("small").text().getIntFromText() ?: Qualities.Unknown.value
|
||||||
if(iframeUrl.contains("www.linkbox.to")) {
|
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>()
|
val json = app.get(apiUrl).parsed<LinkBox>()
|
||||||
json.data?.rList?.forEach {
|
json.data?.itemInfo?.resolutionList?.forEach {
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
this.name,
|
this.name,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
version = 5
|
version = 6
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
description = ""
|
description = ""
|
||||||
|
|
|
@ -10,7 +10,7 @@ import org.jsoup.nodes.Element
|
||||||
|
|
||||||
class MyCima : MainAPI() {
|
class MyCima : MainAPI() {
|
||||||
override var lang = "ar"
|
override var lang = "ar"
|
||||||
override var mainUrl = "https://mycima.tv"
|
override var mainUrl = "https://wecima.tube"
|
||||||
override var name = "MyCima"
|
override var name = "MyCima"
|
||||||
override val usesWebView = false
|
override val usesWebView = false
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
|
|
Loading…
Reference in a new issue