summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-09-25 17:42:17 -0500
committerOmar Roth <omarroth@hotmail.com>2018-09-25 17:42:17 -0500
commit128906515130a6b032538dc17e0551645e8ddcdc (patch)
tree0466f34fdd3371b21192bc244af0f358bea5519f
parent21a8df42dd0427ce0cd1b1cdfbb7eb96e439fa02 (diff)
downloadinvidious-128906515130a6b032538dc17e0551645e8ddcdc.tar.gz
invidious-128906515130a6b032538dc17e0551645e8ddcdc.tar.bz2
invidious-128906515130a6b032538dc17e0551645e8ddcdc.zip
Add host language to fetch_video
-rw-r--r--src/invidious/videos.cr2
1 files changed, 1 insertions, 1 deletions
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)