ufdub: fix search
This commit is contained in:
parent
309f73df66
commit
43d1a361b8
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ class UFDubProvider : MainAPI() {
|
||||||
|
|
||||||
override suspend fun search(query: String): List<SearchResponse> {
|
override suspend fun search(query: String): List<SearchResponse> {
|
||||||
val document = app.post(
|
val document = app.post(
|
||||||
url = mainUrl,
|
url = "$mainUrl/index.php?do=search",
|
||||||
data = mapOf(
|
data = mapOf(
|
||||||
"do" to "search",
|
"do" to "search",
|
||||||
"subaction" to "search",
|
"subaction" to "search",
|
||||||
|
@ -70,7 +70,7 @@ class UFDubProvider : MainAPI() {
|
||||||
)
|
)
|
||||||
).document
|
).document
|
||||||
|
|
||||||
return document.select("article.story").map {
|
return document.select(".short").map {
|
||||||
it.toSearchResponse()
|
it.toSearchResponse()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue