瀏覽代碼

[youtube] Improve signature cipher extraction (closes #25188)

Sergey M․ 5 年之前
父節點
當前提交
fa3db38333
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/youtube.py

+ 1 - 1
youtube_dl/extractor/youtube.py

@@ -1966,7 +1966,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                 url = url_or_none(fmt.get('url'))
                 url = url_or_none(fmt.get('url'))
 
 
                 if not url:
                 if not url:
-                    cipher = fmt.get('cipher')
+                    cipher = fmt.get('cipher') or fmt.get('signatureCipher')
                     if not cipher:
                     if not cipher:
                         continue
                         continue
                     url_data = compat_parse_qs(cipher)
                     url_data = compat_parse_qs(cipher)