youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit f0e14fdd43bf8e86c5385220430eef842a10ccab
parent df5f4e8888bc02f6064b9b92fbf4cfc4eedd4c1f
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon,  2 May 2016 20:05:06 +0600

[YoutubeDL] Skip non-relevant field types when building output template

Diffstat:
Myoutube_dl/YoutubeDL.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)