Add support for 'region' in search

This commit is contained in:
Omar Roth 2019-02-06 18:21:40 -06:00
parent d625d0ffbd
commit a7b79824de
2 changed files with 6 additions and 5 deletions

View file

@ -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