]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube] Don't override format info from the dash manifest (fixes #4911)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 9 Feb 2015 14:04:22 +0000 (15:04 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 9 Feb 2015 14:04:22 +0000 (15:04 +0100)
youtube_dl/extractor/youtube.py

index e4b26b84fe5cf65dfdcedc5d9fd9bf2b67e17f35..8b91fff18522763d667cd4538c47cce9a9253fbe 100644 (file)
@@ -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