瀏覽代碼

Use new signature calculation method only if sig is not present

Philipp Hagemeister 12 年之前
父節點
當前提交
89cb0eb0b6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/InfoExtractors.py

+ 1 - 1
youtube_dl/InfoExtractors.py

@@ -757,7 +757,7 @@ class YoutubeIE(InfoExtractor):
                     url = url_data['url'][0]
                     if 'sig' in url_data:
                         url += '&signature=' + url_data['sig'][0]
-                    if 's' in url_data:
+                    elif 's' in url_data:
                         signature = self._decrypt_signature(url_data['s'][0])
                         url += '&signature=' + signature
                     if 'ratebypass' not in url: