Fix NoneType error for TED talks

This commit is contained in:
Ted Carnahan 2019-03-27 13:12:45 -05:00
parent c4c888697e
commit 33c1e2df50

View File

@ -211,7 +211,7 @@ class TEDIE(InfoExtractor):
http_url = None http_url = None
for format_id, resources in resources_.items(): for format_id, resources in resources_.items():
if format_id == 'h264': if format_id == 'h264':
for resource in resources: for resource in resources or []:
h264_url = resource.get('file') h264_url = resource.get('file')
if not h264_url: if not h264_url:
continue continue