aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-05-02 20:05:06 +0600
committerSergey M․ <dstftw@gmail.com>2016-05-02 20:05:06 +0600
commitf0e14fdd43bf8e86c5385220430eef842a10ccab (patch)
tree7dd60cb6e2f80ad4aa6010b1c6e020d3e6b8381f /youtube_dl/YoutubeDL.py
parentdf5f4e8888bc02f6064b9b92fbf4cfc4eedd4c1f (diff)
[YoutubeDL] Skip non-relevant field types when building output template
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 4e57c9687..2187dcc8f 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -580,7 +580,7 @@ class YoutubeDL(object):
is_id=(k == 'id'))
template_dict = dict((k, sanitize(k, v))
for k, v in template_dict.items()
- if v is not None)
+ if v is not None and not isinstance(v, (list, tuple, dict)))
template_dict = collections.defaultdict(lambda: 'NA', template_dict)
outtmpl = self.params.get('outtmpl', DEFAULT_OUTTMPL)