mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
nimegami: fix search
This commit is contained in:
parent
c35f0bad57
commit
32a8516dc0
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 9
|
||||
version = 10
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -81,7 +81,7 @@ class Nimegami : MainAPI() {
|
|||
override suspend fun search(query: String): List<SearchResponse> {
|
||||
val searchResponse = mutableListOf<SearchResponse>()
|
||||
for (i in 1..2) {
|
||||
val res = app.get("$mainUrl/page/$i/?s=gintama&post_type=post").document.select("div.archive article")
|
||||
val res = app.get("$mainUrl/page/$i/?s=$query&post_type=post").document.select("div.archive article")
|
||||
.mapNotNull {
|
||||
it.toSearchResult()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue