uakino: https://github.com/CakesTwix/cloudstream-extensions-uk/issues/26 for search
This commit is contained in:
parent
d0ac05c980
commit
65a1c79b25
2 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 5
|
version = 6
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -42,8 +42,9 @@ class UakinoProvider : MainAPI() {
|
||||||
): HomePageResponse {
|
): HomePageResponse {
|
||||||
val document = app.get(request.data + page).document
|
val document = app.get(request.data + page).document
|
||||||
val home = document.select("div.owl-item, div.movie-item")
|
val home = document.select("div.owl-item, div.movie-item")
|
||||||
.filterNot { el -> el.select("a.movie-title, a.full-movie").attr("href").contains(blackUrls) }
|
.filterNot { el -> el.select("a.movie-title, a.full-movie").attr("href").contains(Regex(blackUrls)) }
|
||||||
.map {
|
.map {
|
||||||
|
Log.d("CakesTwix-Debug", it.select("a.movie-title, a.full-movie").attr("href"))
|
||||||
it.toSearchResponse()
|
it.toSearchResponse()
|
||||||
}
|
}
|
||||||
return newHomePageResponse(request.name, home)
|
return newHomePageResponse(request.name, home)
|
||||||
|
@ -68,7 +69,10 @@ class UakinoProvider : MainAPI() {
|
||||||
"story" to query.replace(" ", "+")
|
"story" to query.replace(" ", "+")
|
||||||
)
|
)
|
||||||
).document
|
).document
|
||||||
return document.select("div.movie-item.short-item").map {
|
|
||||||
|
return document.select("div.movie-item.short-item")
|
||||||
|
.filterNot { el -> el.select("a.movie-title, a.full-movie").attr("href").contains(Regex(blackUrls)) }
|
||||||
|
.map {
|
||||||
it.toSearchResponse()
|
it.toSearchResponse()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue