mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-05 05:27:05 +00:00
Add host language to YouTube requests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user