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
|
// use an integer for version numbers
|
||||||
version = 9
|
version = 10
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -81,7 +81,7 @@ class Nimegami : MainAPI() {
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
override suspend fun search(query: String): List<SearchResponse> {
|
||||||
val searchResponse = mutableListOf<SearchResponse>()
|
val searchResponse = mutableListOf<SearchResponse>()
|
||||||
for (i in 1..2) {
|
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 {
|
.mapNotNull {
|
||||||
it.toSearchResult()
|
it.toSearchResult()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue