mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-09 23:07:16 +08:00
bug fix
This commit is contained in:
parent
48f9390b76
commit
eaa1ed4286
@ -952,8 +952,11 @@ class YoutubeIE(InfoExtractor):
|
|||||||
lst = []
|
lst = []
|
||||||
for pair in (video_info['fmt_stream_map'][0].split(',')):
|
for pair in (video_info['fmt_stream_map'][0].split(',')):
|
||||||
x = pair.split('|')
|
x = pair.split('|')
|
||||||
|
if x[2] == '':
|
||||||
|
x[2] = x[1]
|
||||||
lst.append((x[0],(x[1],x[2])))
|
lst.append((x[0],(x[1],x[2])))
|
||||||
url_map = dict(lst)
|
url_map = dict(lst)
|
||||||
|
print(url_map)
|
||||||
format_limit = self._downloader.params.get('format_limit', None)
|
format_limit = self._downloader.params.get('format_limit', None)
|
||||||
if format_limit is not None and format_limit in self._available_formats:
|
if format_limit is not None and format_limit in self._available_formats:
|
||||||
format_list = self._available_formats[self._available_formats.index(format_limit):]
|
format_list = self._available_formats[self._available_formats.index(format_limit):]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user