aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorDanko Alexeyev <danko@very.lv>2012-09-27 09:44:49 +0300
committerDanko Alexeyev <danko@very.lv>2012-09-27 09:44:49 +0300
commit9ca667065e7371322e0970421fb4e03f8bd00b9e (patch)
tree3d178d8cf3cf16e114ad06bb14721279245f26a2 /youtube_dl
parentb0d4f9589973396eea1731e4a5ed3d8015365018 (diff)
Add 'signature' to YouTube URLs, fixes #427
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/InfoExtractors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index d95423f7d..8dd1c0b07 100644
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -402,7 +402,7 @@ class YoutubeIE(InfoExtractor):
url_data_strs = video_info['url_encoded_fmt_stream_map'][0].split(',')
url_data = [parse_qs(uds) for uds in url_data_strs]
url_data = filter(lambda ud: 'itag' in ud and 'url' in ud, url_data)
- url_map = dict((ud['itag'][0], ud['url'][0]) for ud in url_data)
+ url_map = dict((ud['itag'][0], ud['url'][0] + '&signature=' + ud['sig'][0]) for ud in url_data)
format_limit = self._downloader.params.get('format_limit', None)
available_formats = self._available_formats_prefer_free if self._downloader.params.get('prefer_free_formats', False) else self._available_formats