Add an "epoch" keyword to the output template

pull/15/head
Ricardo Garcia 2009-05-04 19:31:00 +02:00
rodzic d09744d055
commit ad274509aa
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -260,7 +260,9 @@ class FileDownloader(object):
return
try:
filename = self.params['outtmpl'] % info_dict
template_dict = dict(info_dict)
template_dict['epoch'] = unicode(long(time.time()))
filename = self.params['outtmpl'] % template_dict
self.report_destination(filename)
except (ValueError, KeyError), err:
self.trouble('ERROR: invalid output template or system charset: %s' % str(err))