A feature-rich command-line audio/video downloader
[ted] fix extraction for http and rtmp formats(closes #5941)(closes #17572)(closes #17894)
Remita Aminea94e7c195e26
diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.pyindex 212ac80abb..f9b6aa48f0 100644--- a/youtube_dl/extractor/ted.py+++ b/youtube_dl/extractor/ted.py@@ -212,8 +212,6 @@ class TEDIE(InfoExtractor):http_url = Nonefor format_id, resources in resources_.items():- if not isinstance(resources, dict):- continueif 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):+ continuestream_url = url_or_none(resources.get('stream'))if not stream_url:continue