A feature-rich command-line audio/video downloader
Add an "epoch" keyword to the output template
Ricardo Garciaad274509aa1e
diff --git a/youtube-dl b/youtube-dlindex 2708fe4e7a..db9510f7be 100755--- a/youtube-dl+++ b/youtube-dl@@ -260,7 +260,9 @@ class FileDownloader(object):returntry:- filename = self.params['outtmpl'] % info_dict+ template_dict = dict(info_dict)+ template_dict['epoch'] = unicode(long(time.time()))+ filename = self.params['outtmpl'] % template_dictself.report_destination(filename)except (ValueError, KeyError), err:self.trouble('ERROR: invalid output template or system charset: %s' % str(err))