From: Jaime Marquínez Ferrándiz Date: Mon, 9 Feb 2015 14:04:22 +0000 (+0100) Subject: [youtube] Don't override format info from the dash manifest (fixes #4911) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=ba617964585a118e30932461f24a6c3627047738;p=youtube-dl [youtube] Don't override format info from the dash manifest (fixes #4911) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index e4b26b84f..8b91fff18 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -780,8 +780,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): fo for fo in formats if fo['format_id'] == format_id) 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: existing_format.update(f) return formats