1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-07-03 20:42:53 -05:00

alias %(title)s to %(stitle)s

This commit is contained in:
Filippo Valsorda
2012-11-25 20:39:42 +01:00
parent baec15387c
commit b6fab35b9f
4 changed files with 7 additions and 6 deletions

View 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: