mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-29 18:51:24 +01:00
Compare commits
2 Commits
296c05484f
...
c14e568f00
Author | SHA1 | Date | |
---|---|---|---|
|
c14e568f00 | ||
|
8428aebccb |
|
@ -64,13 +64,13 @@ class AmadeusTVIE(InfoExtractor):
|
||||||
'display_id': display_id,
|
'display_id': display_id,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
**traverse_obj(video_data, {
|
**traverse_obj(video_data, {
|
||||||
'title': ('videoInfo', 'basicInfo', 'name'),
|
'title': ('videoInfo', 'basicInfo', 'name', {str}),
|
||||||
'thumbnail': ('coverInfo', 'coverUrl', {url_or_none}),
|
'thumbnail': ('coverInfo', 'coverUrl', {url_or_none}),
|
||||||
'duration': ('videoInfo', 'sourceVideo', ('floatDuration', 'duration'), {float_or_none}),
|
'duration': ('videoInfo', 'sourceVideo', ('floatDuration', 'duration'), {float_or_none}),
|
||||||
}, get_all=False),
|
}, get_all=False),
|
||||||
**traverse_obj(nuxt_data, ('item', {
|
**traverse_obj(nuxt_data, ('item', {
|
||||||
'title': (('title', 'title_en', 'title_cn'), ),
|
'title': (('title', 'title_en', 'title_cn'), {str}),
|
||||||
'description': (('description', 'description_en', 'description_cn'), ),
|
'description': (('description', 'description_en', 'description_cn'), {str}),
|
||||||
'timestamp': ('date', {parse_iso8601}),
|
'timestamp': ('date', {parse_iso8601}),
|
||||||
'view_count': ('view', {int_or_none}),
|
'view_count': ('view', {int_or_none}),
|
||||||
}), get_all=False),
|
}), get_all=False),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user