mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-01 00:52:58 +01:00
This commit is contained in:
parent
a098c99f0d
commit
9a984265b9
@ -107,6 +107,19 @@ class TEDIE(InfoExtractor):
|
|||||||
'params': {
|
'params': {
|
||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
},
|
},
|
||||||
|
}, {
|
||||||
|
# no nativeDownloads
|
||||||
|
'url': 'https://www.ted.com/talks/tom_thum_the_orchestra_in_my_mouth',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '1792',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'The orchestra in my mouth',
|
||||||
|
'description': 'md5:5d1d78650e2f8dfcbb8ebee2951ac29a',
|
||||||
|
'uploader': 'Tom Thum',
|
||||||
|
},
|
||||||
|
'params': {
|
||||||
|
'skip_download': True,
|
||||||
|
},
|
||||||
}]
|
}]
|
||||||
|
|
||||||
_NATIVE_FORMATS = {
|
_NATIVE_FORMATS = {
|
||||||
@ -180,8 +193,10 @@ def _talk_info(self, url, video_name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
native_downloads = try_get(
|
native_downloads = try_get(
|
||||||
talk_info, lambda x: x['downloads']['nativeDownloads'],
|
talk_info,
|
||||||
dict) or talk_info['nativeDownloads']
|
(lambda x: x['downloads']['nativeDownloads'],
|
||||||
|
lambda x: x['nativeDownloads']),
|
||||||
|
dict) or {}
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
'url': format_url,
|
'url': format_url,
|
||||||
|
Loading…
Reference in New Issue
Block a user