aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2021-06-30 17:15:21 -0700
committerJesús <heckyel@hyperbola.info>2021-07-01 21:07:53 -0500
commit20db70b9b9b95e149d2e13963a692f7eca6d8cc8 (patch)
tree68bc59bfbdcc63f263ee59d2276969892089fb6f /youtube/watch.py
parentacfa31ff5991c2a7b6c510c45f2481db461970c7 (diff)
downloadyt-local-20db70b9b9b95e149d2e13963a692f7eca6d8cc8.tar.lz
yt-local-20db70b9b9b95e149d2e13963a692f7eca6d8cc8.tar.xz
yt-local-20db70b9b9b95e149d2e13963a692f7eca6d8cc8.zip
get_video_info: Specify language so error messages are in english
Otherwise error message language will be region of Tor exit node Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index ec161df..094f8b5 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -251,6 +251,7 @@ def extract_info(video_id, use_invidious, playlist_id=None, index=None):
# See https://github.com/ytdl-org/youtube-dl/issues/29333#issuecomment-864049544
'c': 'TVHTML5',
'cver': '6.20180913',
+ 'hl': 'en',
}
url = 'https://www.youtube.com/get_video_info?'
url += urllib.parse.urlencode(data)