From e5ec624f9eb5b0f89f447428b0f30844aa0c0b61 Mon Sep 17 00:00:00 2001 From: Giuseppe Fabiano Date: Sat, 28 Jul 2018 16:06:46 +0200 Subject: [PATCH] [ted] fix extraction --- 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 06a27fd04..c92943d8a 100644 --- a/youtube_dl/extractor/ted.py +++ b/youtube_dl/extractor/ted.py @@ -181,7 +181,7 @@ class TEDIE(InfoExtractor): native_downloads = try_get( talk_info, lambda x: x['downloads']['nativeDownloads'], - dict) or talk_info['nativeDownloads'] + dict) or talk_info.get('nativeDownloads') or {} formats = [{ 'url': format_url,