nimegami: fix search

This commit is contained in:
alex 2024-01-17 17:01:09 +07:00
parent c35f0bad57
commit 32a8516dc0
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 9
version = 10
cloudstream {

View file

@ -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()
}