mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add support for 'region' in search
This commit is contained in:
parent
d625d0ffbd
commit
a7b79824de
2 changed files with 6 additions and 5 deletions
|
@ -85,8 +85,8 @@ def channel_search(query, page, channel)
|
|||
return count, items
|
||||
end
|
||||
|
||||
def search(query, page = 1, search_params = produce_search_params(content_type: "all"))
|
||||
client = make_client(YT_URL)
|
||||
def search(query, page = 1, search_params = produce_search_params(content_type: "all"), proxies = nil, region = nil)
|
||||
client = make_client(YT_URL, proxies, region)
|
||||
if query.empty?
|
||||
return {0, [] of SearchItem}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue