Removed provider (mistake) and add provider parameter to process_info
[youtube-dl] / youtube_dl / FileDownloader.py
index 2bc0b0d4e98d4294984ce87ca22238ca8e08b621..1c5eeeabe6a7a0a069c864db9936c97385a60caf 100644 (file)
@@ -341,9 +341,11 @@ class FileDownloader(object):
                        return u'"' + title + '" title matched reject pattern "' + rejecttitle + '"'
                return None
 
-       def process_info(self, info_dict):
+       def process_info(self, info_dict, provider):
                """Process a single dictionary returned by an InfoExtractor."""
 
+               info_dict['stitle'] = sanitize_filename(info_dict['title'])
+
                reason = self._match_entry(info_dict)
                if reason is not None:
                        self.to_screen(u'[download] ' + reason)
@@ -474,7 +476,7 @@ class FileDownloader(object):
                                for video in videos or []:
                                        try:
                                                self.increment_downloads()
-                                               self.process_info(video)
+                                               self.process_info(video, ie.IE_NAME)
                                        except UnavailableVideoError:
                                                self.trouble(u'\nERROR: unable to download video')