alias %(title)s to %(stitle)s
[youtube-dl] / youtube_dl / FileDownloader.py
index 4449fe711f28fbcfc427b5b23719d3e5cbdf045c..08bd83354930921c14a52ee38820852386e47c0e 100644 (file)
@@ -322,6 +322,7 @@ class FileDownloader(object):
                        template_dict = dict(info_dict)
                        template_dict['epoch'] = unicode(long(time.time()))
                        template_dict['autonumber'] = unicode('%05d' % self._num_downloads)
+                       template_dict['title'] = template_dict['stitle'] # Keep both for backwards compatibility
                        filename = self.params['outtmpl'] % template_dict
                        return filename
                except (ValueError, KeyError), err: