Browse Source

[YoutubeDL] Don't sanitize identifiers (closes #12317)

master-ytdl-org
Sergey M․ 8 years ago
parent
commit
40df485f55
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/YoutubeDL.py

+ 1
- 1
youtube_dl/YoutubeDL.py View File

@ -616,7 +616,7 @@ class YoutubeDL(object):
sanitize = lambda k, v: sanitize_filename(
compat_str(v),
restricted=self.params.get('restrictfilenames'),
is_id=(k == 'id'))
is_id=(k == 'id' or k.endswith('_id')))
template_dict = dict((k, v if isinstance(v, compat_numeric_types) else sanitize(k, v))
for k, v in template_dict.items()
if v is not None and not isinstance(v, (list, tuple, dict)))


Loading…
Cancel
Save