mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-21 22:03:55 -07:00
Merge 1f94ae5252
into b845d58b04
This commit is contained in:
commit
fd5691b587
1 changed files with 1 additions and 1 deletions
|
@ -689,7 +689,7 @@ class FileDownloader(object):
|
||||||
template_dict = dict(info_dict)
|
template_dict = dict(info_dict)
|
||||||
template_dict['epoch'] = unicode(long(time.time()))
|
template_dict['epoch'] = unicode(long(time.time()))
|
||||||
template_dict['autonumber'] = unicode('%05d' % self._num_downloads)
|
template_dict['autonumber'] = unicode('%05d' % self._num_downloads)
|
||||||
filename = self.params['outtmpl'] % template_dict
|
filename = self.params['outtmpl'].replace('%','%%') % template_dict
|
||||||
return filename
|
return filename
|
||||||
except (ValueError, KeyError), err:
|
except (ValueError, KeyError), err:
|
||||||
self.trouble(u'ERROR: invalid system charset or erroneous output template')
|
self.trouble(u'ERROR: invalid system charset or erroneous output template')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue