Add host language to YouTube requests

This commit is contained in:
Omar Roth
2018-09-25 17:55:32 -05:00
parent 1289065151
commit 5b5d69a33b
3 changed files with 5 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ def search(query, page = 1, search_params = produce_search_params(content_type:
return {0, [] of SearchItem}
end
html = client.get("/results?q=#{URI.escape(query)}&page=#{page}&sp=#{search_params}&disable_polymer=1").body
html = client.get("/results?q=#{URI.escape(query)}&page=#{page}&sp=#{search_params}&hl=en&disable_polymer=1").body
if html.empty?
return {0, [] of SearchItem}
end