aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-06-23 19:43:18 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-06-23 19:43:18 +0200
commit89cb0eb0b6037c9769761eb58026b949bfd1277b (patch)
treea04b8d81a912b4e1a2d713e2d4e6c92d9aab388c /youtube_dl
parent1f9043802534ba22466bc9cff5b9ac7649159642 (diff)
Use new signature calculation method only if sig is not present
Diffstat (limited to 'youtube_dl')
-rwxr-xr-xyoutube_dl/InfoExtractors.py2
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: