Explorar o código

[youtube] Fix authentication (closes #11270)

Sergey M․ %!s(int64=6) %!d(string=hai) anos
pai
achega
baf67a604d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      youtube_dl/extractor/youtube.py

+ 2 - 0
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,