]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youtube] Pass self._formats to _parse_dash_manifest
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 30 Jan 2016 13:32:15 +0000 (21:32 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 30 Jan 2016 13:32:15 +0000 (21:32 +0800)
youtube_dl/extractor/youtube.py

index acd5cf2c36f3fb209e598531690d9c2f26b67681..c1d570cb38c4fdb004effeeec61743be8c574cb1 100644 (file)
@@ -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