[youtube] Improve signature cipher extraction (closes #25188)
[youtube-dl] / 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)