Provider (youtube, etc) is now saved in info_dict, so template filename can be someth...
[youtube-dl] / youtube_dl / FileDownloader.py
index 2bc0b0d4e98d4294984ce87ca22238ca8e08b621..793fc3daf3545e0ba43efba716d6a6a18db44b23 100644 (file)
@@ -344,6 +344,8 @@ class FileDownloader(object):
        def process_info(self, info_dict):
                """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)
@@ -473,6 +475,7 @@ class FileDownloader(object):
                                videos = ie.extract(url)
                                for video in videos or []:
                                        try:
+                                               video['provider'] = ie.IE_NAME
                                                self.increment_downloads()
                                                self.process_info(video)
                                        except UnavailableVideoError: