projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d90a8a
)
[ted] fix extraction for http and rtmp formats(closes #5941)(closes #17572)(closes...
author
Remita Amine
<remitamine@gmail.com>
Mon, 15 Oct 2018 10:51:40 +0000
(11:51 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Mon, 15 Oct 2018 10:52:01 +0000
(11:52 +0100)
youtube_dl/extractor/ted.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ted.py
b/youtube_dl/extractor/ted.py
index 212ac80abb52ec98c887b9652234fdb50bb81717..f9b6aa48f03d3b3a8cf49f80573eb9d24d115384 100644
(file)
--- 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