]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[extractor/generic] Fix direct link semantics
authorSergey M․ <dstftw@gmail.com>
Fri, 18 Mar 2016 16:43:07 +0000 (22:43 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 18 Mar 2016 16:43:07 +0000 (22:43 +0600)
youtube_dl/extractor/generic.py

index a2e7ba5ad8418bd3f6827cac53966a85f837c16d..5649e26daed694a0e5cb5733f92ed768012ac80d 100644 (file)
@@ -1277,10 +1277,8 @@ class GenericIE(InfoExtractor):
                     'url': url,
                     'vcodec': 'none' if m.group('type') == 'audio' else None
                 }]
-            info_dict.update({
-                'direct': True,
-                'formats': formats,
-            })
+                info_dict['direct'] = True
+            info_dict['formats'] = formats
             return info_dict
 
         if not self._downloader.params.get('test', False) and not is_intentional: