mirror of
https://github.com/yoyzo/arab
synced 2024-08-15 03:15:00 +00:00
fixed movies in shows showing comming soon
This commit is contained in:
parent
9b2fe358a2
commit
cd178b331c
1 changed files with 7 additions and 3 deletions
|
@ -77,7 +77,9 @@ class Akwam : MainAPI() {
|
||||||
|
|
||||||
override suspend fun load(url: String): LoadResponse {
|
override suspend fun load(url: String): LoadResponse {
|
||||||
val doc = app.get(url).document
|
val doc = app.get(url).document
|
||||||
val isMovie = url.contains("/movie/")
|
val mesEl = doc.select("#downloads > h2 > span").isNotEmpty()
|
||||||
|
val mesSt = if(mesEl) true else false
|
||||||
|
val isMovie = mesSt//url.contains("/movie/")
|
||||||
val title = doc.select("h1.entry-title").text()
|
val title = doc.select("h1.entry-title").text()
|
||||||
val posterUrl = doc.select("picture > img").attr("src")
|
val posterUrl = doc.select("picture > img").attr("src")
|
||||||
|
|
||||||
|
@ -106,6 +108,8 @@ class Akwam : MainAPI() {
|
||||||
Actor(name, image)
|
Actor(name, image)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
val recommendations =
|
val recommendations =
|
||||||
doc.select("div > div.widget-body > div.row > div > div.entry-box").mapNotNull {
|
doc.select("div > div.widget-body > div.row > div > div.entry-box").mapNotNull {
|
||||||
val recTitle = it?.selectFirst("div.entry-body > .entry-title > .text-white")
|
val recTitle = it?.selectFirst("div.entry-body > .entry-title > .text-white")
|
||||||
|
@ -191,7 +195,7 @@ class Akwam : MainAPI() {
|
||||||
} else {
|
} else {
|
||||||
val url = "$mainUrl/download${
|
val url = "$mainUrl/download${
|
||||||
linkElement.attr("href").split("/link")[1]
|
linkElement.attr("href").split("/link")[1]
|
||||||
}${data.split("/movie|/episode|/show/episode".toRegex())[1]}"
|
}${data.split("/movie|/episode|/shows|/show/episode".toRegex())[1]}"
|
||||||
Pair(
|
Pair(
|
||||||
url,
|
url,
|
||||||
quality,
|
quality,
|
||||||
|
|
Loading…
Reference in a new issue