Skip to content

Commit

Permalink
[Website - SONUMA] Improve search
Browse files Browse the repository at this point in the history
  • Loading branch information
darodi committed May 24, 2022
1 parent 38af0be commit 55de8ca
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions resources/lib/websites/sonuma.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,25 @@ def list_search(plugin, search_query, item_id, start=0, **kwargs):
"qform": {
"fields": [
{
"name": "text",
"name": "thName",
"type": "S",
"lines": [
{
"plus": "",
"plus": "+",
"values": [
"*%s*" % search_query
"collection"
]
},
}
]
},
{
"name": "name",
"type": "S",
"lines": [
{
"plus": "",
"plus": "+",
"values": [
"%s" % search_query
"*%s*" % search_query
]
}
]
Expand Down

0 comments on commit 55de8ca

Please sign in to comment.