ufdub: fix search

This commit is contained in:
CakesTwix 2023-02-20 16:53:53 +02:00
parent 309f73df66
commit 43d1a361b8
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825

View file

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