Browse Source

[youtube] Pass self._formats to _parse_dash_manifest

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
5d2c0fd9ba
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/youtube.py

+ 2
- 1
youtube_dl/extractor/youtube.py View 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


Loading…
Cancel
Save