1
0
Fork 0

Fix filename sanitization

Bug from 752cda3880
This commit is contained in:
pukkandan 2021-06-06 19:30:21 +05:30
commit 87ea7dfc04
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
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)