diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py index 1c5eeeabe6a..793fc3daf35 100644 --- a/youtube_dl/FileDownloader.py +++ b/youtube_dl/FileDownloader.py @@ -341,7 +341,7 @@ def _match_entry(self, info_dict): return u'"' + title + '" title matched reject pattern "' + rejecttitle + '"' return None - def process_info(self, info_dict, provider): + def process_info(self, info_dict): """Process a single dictionary returned by an InfoExtractor.""" info_dict['stitle'] = sanitize_filename(info_dict['title']) @@ -475,8 +475,9 @@ def download(self, url_list): videos = ie.extract(url) for video in videos or []: try: + video['provider'] = ie.IE_NAME self.increment_downloads() - self.process_info(video, ie.IE_NAME) + self.process_info(video) except UnavailableVideoError: self.trouble(u'\nERROR: unable to download video')