浏览代码

Pass the 'download' argument to 'process_video_result' (fixes #1769)

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

+ 1 - 1
youtube_dl/YoutubeDL.py

@@ -385,7 +385,7 @@ class YoutubeDL(object):
         result_type = ie_result.get('_type', 'video') # If not given we suppose it's a video, support the default old system
         result_type = ie_result.get('_type', 'video') # If not given we suppose it's a video, support the default old system
         if result_type == 'video':
         if result_type == 'video':
             self.add_extra_info(ie_result, extra_info)
             self.add_extra_info(ie_result, extra_info)
-            return self.process_video_result(ie_result)
+            return self.process_video_result(ie_result, download=download)
         elif result_type == 'url':
         elif result_type == 'url':
             # We have to add extra_info to the results because it may be
             # We have to add extra_info to the results because it may be
             # contained in a playlist
             # contained in a playlist