From 5d2c0fd9ba2251a5c91b7d8b1dd285b427a2251e Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Sat, 30 Jan 2016 21:32:15 +0800 Subject: [PATCH] [youtube] Pass self._formats to _parse_dash_manifest --- youtube_dl/extractor/youtube.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index acd5cf2c3..c1d570cb3 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1478,7 +1478,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor): errnote='Could not download DASH manifest', 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 if df['format_id'] not in dash_formats: dash_formats[df['format_id']] = df