[downloader] Improve downloader selection
[youtube-dl] / youtube_dl / YoutubeDL.py
index 521e4055e0132c65b611ceff9ee98c4c6c006837..e61e6c2a783e96d16f90d237f1f01b6994516c1f 100755 (executable)
@@ -1179,7 +1179,7 @@ class YoutubeDL(object):
         if not self.params.get('skip_download', False):
             try:
                 def dl(name, info):
-                    fd = get_suitable_downloader(info)(self, self.params)
+                    fd = get_suitable_downloader(info, self.params)(self, self.params)
                     for ph in self._progress_hooks:
                         fd.add_progress_hook(ph)
                     if self.params.get('verbose'):