Browse Source

[youtube] Don't override format info from the dash manifest (fixes #4911)

totalwebcasting
Jaime Marquínez Ferrándiz 10 years ago
parent
commit
ba61796458
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/youtube.py

+ 3
- 2
youtube_dl/extractor/youtube.py View File

@ -780,8 +780,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
fo for fo in formats fo for fo in formats
if fo['format_id'] == format_id) if fo['format_id'] == format_id)
except StopIteration: except StopIteration:
f.update(self._formats.get(format_id, {}).items())
formats.append(f)
full_info = self._formats.get(format_id, {}).copy()
full_info.update(f)
formats.append(full_info)
else: else:
existing_format.update(f) existing_format.update(f)
return formats return formats


Loading…
Cancel
Save