diff options
author | Remita Amine <remitamine@gmail.com> | 2018-10-15 11:51:40 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2018-10-15 11:52:01 +0100 |
commit | a94e7c195e261137461b546c6446033b371dfbbe (patch) | |
tree | d7a880795e9ed1f8db9d48e85a268ff7d82d4491 /youtube_dl/extractor/ted.py | |
parent | 5d90a8a5f3fef73bb4ccbecd8c61583522b88d79 (diff) |
[ted] fix extraction for http and rtmp formats(closes #5941)(closes #17572)(closes #17894)
Diffstat (limited to 'youtube_dl/extractor/ted.py')
-rw-r--r-- | youtube_dl/extractor/ted.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.py index 212ac80ab..f9b6aa48f 100644 --- a/youtube_dl/extractor/ted.py +++ b/youtube_dl/extractor/ted.py @@ -212,8 +212,6 @@ class TEDIE(InfoExtractor): http_url = None for format_id, resources in resources_.items(): - if not isinstance(resources, dict): - continue if format_id == 'h264': for resource in resources: h264_url = resource.get('file') @@ -242,6 +240,8 @@ class TEDIE(InfoExtractor): 'tbr': int_or_none(resource.get('bitrate')), }) elif format_id == 'hls': + if not isinstance(resources, dict): + continue stream_url = url_or_none(resources.get('stream')) if not stream_url: continue |