logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: baf67a604d912722b0fe03a40e9dc5349a2208cb
parent 0d1f4af39dab36138a3809e31a8c09ee588e1b40
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 12 Jul 2019 02:26:05 +0700

[youtube] Fix authentication (closes #11270)

Diffstat:

Myoutube_dl/extractor/youtube.py2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py @@ -116,6 +116,8 @@ class YoutubeBaseInfoExtractor(InfoExtractor): 'f.req': json.dumps(f_req), 'flowName': 'GlifWebSignIn', 'flowEntry': 'ServiceLogin', + # TODO: reverse actual botguard identifier generation algo + 'bgRequest': '["identifier",""]', }) return self._download_json( url, None, note=note, errnote=errnote,