From eaa1ed4286e6597dfe159c324a4e9fb39a06c801 Mon Sep 17 00:00:00 2001 From: SaitoAtsushi Date: Thu, 23 Dec 2010 17:45:27 +0900 Subject: [PATCH] bug fix --- youtube-dl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube-dl b/youtube-dl index c2ed54a84..e0a28a675 100755 --- a/youtube-dl +++ b/youtube-dl @@ -952,8 +952,11 @@ class YoutubeIE(InfoExtractor): lst = [] for pair in (video_info['fmt_stream_map'][0].split(',')): x = pair.split('|') + if x[2] == '': + x[2] = x[1] lst.append((x[0],(x[1],x[2]))) url_map = dict(lst) + print(url_map) format_limit = self._downloader.params.get('format_limit', None) if format_limit is not None and format_limit in self._available_formats: format_list = self._available_formats[self._available_formats.index(format_limit):]