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>
This commit is contained in:
James Taylor 2021-06-30 17:15:21 -07:00 committed by Jesús
parent acfa31ff59
commit 20db70b9b9
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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 # See https://github.com/ytdl-org/youtube-dl/issues/29333#issuecomment-864049544
'c': 'TVHTML5', 'c': 'TVHTML5',
'cver': '6.20180913', 'cver': '6.20180913',
'hl': 'en',
} }
url = 'https://www.youtube.com/get_video_info?' url = 'https://www.youtube.com/get_video_info?'
url += urllib.parse.urlencode(data) url += urllib.parse.urlencode(data)