Invidious is an alternative front-end to YouTube
Add host language to fetch_video
Omar Roth128906515130
diff --git a/src/invidious/videos.cr b/src/invidious/videos.crindex c50ed4f3..e879ce2c 100644--- a/src/invidious/videos.cr+++ b/src/invidious/videos.cr@@ -505,7 +505,7 @@ def fetch_video(id)spawn doclient = 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)