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 7e9b561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/lib/websites/sonuma.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def website_homepage(plugin, item_id, **kwargs):
yield item


@Route.register
@Route.register(autosort=False, content_type="videos")
def list_search(plugin, search_query, item_id, start=0, **kwargs):
if search_query is None or len(search_query) == 0:
yield False
Expand Down Expand Up @@ -104,7 +104,7 @@ def list_search(plugin, search_query, item_id, start=0, **kwargs):
{
"plus": "",
"values": [
"%s" % search_query
"%s" % re.sub(r'\s+', '*', search_query)
]
}
]
Expand Down

0 comments on commit 7e9b561

Please sign in to comment.