projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b8a984
)
[YoutubeDL] Don't sanitize identifiers (closes #12317)
author
Sergey M․
<dstftw@gmail.com>
Wed, 1 Mar 2017 16:03:36 +0000
(23:03 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 1 Mar 2017 16:03:36 +0000
(23:03 +0700)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index f7254560c04c87549cd65488408ce3ddfcd4bf5f..13a3a909e3964c904290e7d443fcf94dc3187ddf 100755
(executable)
--- 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)))