From: Philipp Hagemeister Date: Sun, 23 Jun 2013 17:43:18 +0000 (+0200) Subject: Use new signature calculation method only if sig is not present X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=89cb0eb0b6037c9769761eb58026b949bfd1277b;p=youtube-dl Use new signature calculation method only if sig is not present --- diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 39d2ef9d4..062e60ca2 100755 --- a/youtube_dl/InfoExtractors.py +++ b/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: