mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Otakudesu, Rebahin, Kuramanime
This commit is contained in:
parent
57ebef9198
commit
25e2deb249
7 changed files with 16 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 5
|
||||
version = 6
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -91,7 +91,7 @@ class KuramanimeProvider : MainAPI() {
|
|||
val link = "$mainUrl/anime?search=$query&order_by=latest"
|
||||
val document = app.get(link).document
|
||||
|
||||
return document.select("div#animeList div.col-lg-4.col-md-6.col-sm-6").mapNotNull {
|
||||
return document.select("div#animeList div.product__item").mapNotNull {
|
||||
it.toSearchResult()
|
||||
}
|
||||
}
|
||||
|
@ -123,12 +123,17 @@ class KuramanimeProvider : MainAPI() {
|
|||
)
|
||||
).parsedSafe<DataAni>()?.data?.media?.id
|
||||
|
||||
val episodes =
|
||||
Jsoup.parse(document.select("#episodeLists").attr("data-content")).select("a").map {
|
||||
val episodes = mutableListOf<Episode>()
|
||||
|
||||
for (i in 1..5) {
|
||||
val doc = app.get("$url?page=$i").document
|
||||
val eps = Jsoup.parse(doc.select("#episodeLists").attr("data-content")).select("a").mapNotNull {
|
||||
val name = it.text().trim()
|
||||
val link = it.attr("href")
|
||||
Episode(link, name)
|
||||
}
|
||||
}.filter { it.name?.contains(Regex("(?i)(Terlama)|(Terbaru)")) == false }
|
||||
if(eps.isEmpty()) break else episodes.addAll(eps)
|
||||
}
|
||||
|
||||
val recommendations = document.select("div#randomList > a").mapNotNull {
|
||||
val epHref = it.attr("href")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue