diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.py index 10b3b706a9..5e53229740 100644 --- a/youtube_dl/extractor/ted.py +++ b/youtube_dl/extractor/ted.py @@ -134,9 +134,13 @@ def _talk_info(self, url, video_name): if talk_info.get('external') is not None: self.to_screen('Found video from %s' % talk_info['external']['service']) + if 'code' in talk_info['external']: + ext_url = talk_info['external']['code'] + else: + ext_url = talk_info['external']['uri'] return { '_type': 'url', - 'url': talk_info['external']['uri'], + 'url': ext_url, } formats = [{