[ted] fix extraction

This commit is contained in:
Giuseppe Fabiano 2018-07-28 16:06:46 +02:00
parent a098c99f0d
commit e5ec624f9e

View File

@ -181,7 +181,7 @@ class TEDIE(InfoExtractor):
native_downloads = try_get( native_downloads = try_get(
talk_info, lambda x: x['downloads']['nativeDownloads'], talk_info, lambda x: x['downloads']['nativeDownloads'],
dict) or talk_info['nativeDownloads'] dict) or talk_info.get('nativeDownloads') or {}
formats = [{ formats = [{
'url': format_url, 'url': format_url,