Browse Source

Add an "epoch" keyword to the output template

rtmp_test
Ricardo Garcia 16 years ago
parent
commit
ad274509aa
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      youtube-dl

+ 3
- 1
youtube-dl View File

@ -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))


Loading…
Cancel
Save