浏览代码

Respect the download parameter in YoutubeDL.process_video_result if the extractor handle the format selection

Jaime Marquínez Ferrándiz 12 年之前
父节点
当前提交
12893efe01
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/YoutubeDL.py

+ 2 - 1
youtube_dl/YoutubeDL.py

@@ -461,7 +461,8 @@ class YoutubeDL(object):
 
 
         # This extractors handle format selection themselves
         # This extractors handle format selection themselves
         if info_dict['extractor'] in [u'youtube', u'Youku', u'YouPorn', u'mixcloud']:
         if info_dict['extractor'] in [u'youtube', u'Youku', u'YouPorn', u'mixcloud']:
-            self.process_info(info_dict)
+            if download:
+                self.process_info(info_dict)
             return info_dict
             return info_dict
 
 
         # We now pick which formats have to be downloaded
         # We now pick which formats have to be downloaded