From: Yen Chi Hsuan Date: Sat, 30 Jan 2016 13:32:15 +0000 (+0800) Subject: [youtube] Pass self._formats to _parse_dash_manifest X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=5d2c0fd9ba2251a5c91b7d8b1dd285b427a2251e;p=youtube-dl.git [youtube] Pass self._formats to _parse_dash_manifest --- 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