diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-06-23 19:43:18 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-06-23 19:43:18 +0200 |
commit | 89cb0eb0b6037c9769761eb58026b949bfd1277b (patch) | |
tree | a04b8d81a912b4e1a2d713e2d4e6c92d9aab388c /youtube_dl | |
parent | 1f9043802534ba22466bc9cff5b9ac7649159642 (diff) |
Use new signature calculation method only if sig is not present
Diffstat (limited to 'youtube_dl')
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |