Skip to content

Commit

Permalink
[ted] fix extraction for http and rtmp formats(closes #5941)(closes #…
Browse files Browse the repository at this point in the history
…17572)(closes #17894)
  • Loading branch information
remitamine authored and lkho committed Dec 24, 2018
1 parent 7d45e92 commit 70614a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/ted.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ def _talk_info(self, url, video_name):

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')
Expand Down Expand Up @@ -242,6 +240,8 @@ def _talk_info(self, url, video_name):
'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
Expand Down

0 comments on commit 70614a1

Please sign in to comment.