]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Use new signature calculation method only if sig is not present
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 23 Jun 2013 17:43:18 +0000 (19:43 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 23 Jun 2013 17:43:18 +0000 (19:43 +0200)
youtube_dl/InfoExtractors.py

index 39d2ef9d4a8b9cfd737e4d5a76850044b6a22917..062e60ca25d15758372cb5cc8a0137093b54173a 100755 (executable)
@@ -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: