|
|
@ -278,7 +278,7 @@ class YoutubeDL(object):
|
|
|
|
sanitize = lambda k, v: sanitize_filename(
|
|
|
|
sanitize = lambda k, v: sanitize_filename(
|
|
|
|
u'NA' if v is None else compat_str(v),
|
|
|
|
u'NA' if v is None else compat_str(v),
|
|
|
|
restricted=self.params.get('restrictfilenames'),
|
|
|
|
restricted=self.params.get('restrictfilenames'),
|
|
|
|
is_id=(k==u'id'))
|
|
|
|
is_id=k == u'id')
|
|
|
|
template_dict = dict((k, sanitize(k, v)) for k, v in template_dict.items())
|
|
|
|
template_dict = dict((k, sanitize(k, v)) for k, v in template_dict.items())
|
|
|
|
|
|
|
|
|
|
|
|
filename = self.params['outtmpl'] % template_dict
|
|
|
|
filename = self.params['outtmpl'] % template_dict
|
|
|
|