From 20db70b9b9b95e149d2e13963a692f7eca6d8cc8 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 30 Jun 2021 17:15:21 -0700 Subject: get_video_info: Specify language so error messages are in english MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise error message language will be region of Tor exit node Signed-off-by: Jesús --- youtube/watch.py | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube') 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) -- cgit v1.2.3