1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

Use new signature calculation method only if sig is not present

This commit is contained in:
Philipp Hagemeister 2013-06-23 19:43:18 +02:00
parent 1f90438025
commit 89cb0eb0b6

View file

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