From 33c1e2df504dfaf5724d0f68f09446d246e39693 Mon Sep 17 00:00:00 2001 From: Ted Carnahan Date: Wed, 27 Mar 2019 13:12:45 -0500 Subject: [PATCH] Fix NoneType error for TED talks --- youtube_dl/extractor/ted.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.py index 645942dfd..1555473fe 100644 --- a/youtube_dl/extractor/ted.py +++ b/youtube_dl/extractor/ted.py @@ -211,7 +211,7 @@ class TEDIE(InfoExtractor): http_url = None for format_id, resources in resources_.items(): if format_id == 'h264': - for resource in resources: + for resource in resources or []: h264_url = resource.get('file') if not h264_url: continue