Refactor proxy_list into global

This commit is contained in:
Omar Roth
2019-06-28 21:17:56 -05:00
parent a58f5a925a
commit e30d70b6d4
7 changed files with 42 additions and 55 deletions

View File

@@ -256,8 +256,8 @@ def channel_search(query, page, channel)
return count, items
end
def search(query, page = 1, search_params = produce_search_params(content_type: "all"), proxies = nil, region = nil)
client = make_client(YT_URL, proxies, region)
def search(query, page = 1, search_params = produce_search_params(content_type: "all"), region = nil)
client = make_client(YT_URL, region)
if query.empty?
return {0, [] of SearchItem}
end