Fix filename sanitization

Bug from 752cda3880
This commit is contained in:
pukkandan
2021-06-06 19:30:21 +05:30
parent eb0f9d6838
commit 87ea7dfc04
2 changed files with 5 additions and 1 deletions

View File

@@ -915,7 +915,7 @@ class YoutubeDL(object):
# If value is an object, sanitize might convert it to a string
# So we convert it to repr first
value, fmt = repr(value), '%ss' % fmt[:-1]
value = sanitize(key, value)
value = sanitize(key, value)
tmpl_dict[key] = value
return '%({key}){fmt}'.format(key=key, fmt=fmt)