From 128906515130a6b032538dc17e0551645e8ddcdc Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 25 Sep 2018 17:42:17 -0500 Subject: [PATCH] Add host language to fetch_video --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index c50ed4f3..e879ce2c 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -505,7 +505,7 @@ def fetch_video(id) spawn do client = make_client(YT_URL) - html = client.get("/watch?v=#{id}&bpctr=#{Time.new.epoch + 2000}&disable_polymer=1") + html = client.get("/watch?v=#{id}&bpctr=#{Time.new.epoch + 2000}&gl=US&hl=en&disable_polymer=1") html = XML.parse_html(html.body) html_channel.send(html)