diff --git a/youtube-dl b/youtube-dl index 38472272f..16b1cad62 100755 --- a/youtube-dl +++ b/youtube-dl @@ -689,7 +689,7 @@ class FileDownloader(object): template_dict = dict(info_dict) template_dict['epoch'] = unicode(long(time.time())) template_dict['autonumber'] = unicode('%05d' % self._num_downloads) - filename = self.params['outtmpl'] % template_dict + filename = self.params['outtmpl'].replace('%','%%') % template_dict return filename except (ValueError, KeyError), err: self.trouble(u'ERROR: invalid system charset or erroneous output template')