1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

[youtube] Pass self._formats to _parse_dash_manifest

This commit is contained in:
Yen Chi Hsuan 2016-01-30 21:32:15 +08:00
parent 0803753fea
commit 5d2c0fd9ba

View file

@ -1478,7 +1478,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
errnote='Could not download DASH manifest', errnote='Could not download DASH manifest',
fatal=dash_mpd_fatal) fatal=dash_mpd_fatal)
for df in self._parse_dash_manifest(video_id, dash_doc, dash_mpd_fatal): for df in self._parse_dash_manifest(
video_id, dash_doc, formats_dict=self._formats, fatal=dash_mpd_fatal):
# Do not overwrite DASH format found in some previous DASH manifest # Do not overwrite DASH format found in some previous DASH manifest
if df['format_id'] not in dash_formats: if df['format_id'] not in dash_formats:
dash_formats[df['format_id']] = df dash_formats[df['format_id']] = df