moved increment_downloads and process_info calls from IEs to FD.download (#296) ...
[youtube-dl] / youtube_dl / FileDownloader.py
index b234f185701e0194bca822a88747192ea56b1974..63b29a837c2cac0710329eaa6e3ab1cf38639b61 100644 (file)
@@ -470,7 +470,13 @@ class FileDownloader(object):
                                suitable_found = True
 
                                # Extract information from URL and process it
-                               ie.extract(url)
+                               videos = ie.extract(url)
+                               for video in videos or []:
+                                       try:
+                                               self.increment_downloads()
+                                               self.process_info(video)
+                                       except UnavailableVideoError:
+                                               self.trouble(u'\nERROR: unable to download video')
 
                                # Suitable InfoExtractor had been found; go to next URL
                                break