Fix NoneType error for TED talks
This commit is contained in:
parent
c4c888697e
commit
33c1e2df50
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user