]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youtube] Improve signature cipher extraction (closes #25188)
authorSergey M․ <dstftw@gmail.com>
Fri, 8 May 2020 10:42:30 +0000 (17:42 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 8 May 2020 10:42:30 +0000 (17:42 +0700)
youtube_dl/extractor/youtube.py

index 5ea66c96203170e22601bc3f798dd2ac5a49bb79..9f748390531b66107f0e2012a0fdee152941d98d 100644 (file)
@@ -1966,7 +1966,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                 url = url_or_none(fmt.get('url'))
 
                 if not url:
-                    cipher = fmt.get('cipher')
+                    cipher = fmt.get('cipher') or fmt.get('signatureCipher')
                     if not cipher:
                         continue
                     url_data = compat_parse_qs(cipher)