about summary refs log tree commit diff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-03-01 23:03:36 +0700
committerSergey M․ <dstftw@gmail.com>2017-03-01 23:03:36 +0700
commit40df485f554ec3fff81ca988b5bf961d54d8e41b (patch)
tree0e79d173660a61b1da569ebd0a2a75759e4515ed /youtube_dl/YoutubeDL.py
parent4b8a984c67cdc1b2bfde77398d74096406db9644 (diff)
downloadyoutube-dl-40df485f554ec3fff81ca988b5bf961d54d8e41b.tar.gz
youtube-dl-40df485f554ec3fff81ca988b5bf961d54d8e41b.tar.xz
youtube-dl-40df485f554ec3fff81ca988b5bf961d54d8e41b.zip
[YoutubeDL] Don't sanitize identifiers (closes #12317)
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index f7254560c..13a3a909e 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -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)))