mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 05:47:24 +01:00
Update amazonminitv.py
This commit is contained in:
parent
b981449466
commit
ac410f1354
@ -95,21 +95,21 @@ def _real_extract(self, url):
|
|||||||
subtitles = self._merge_subtitles(subtitles, mpd_subs)
|
subtitles = self._merge_subtitles(subtitles, mpd_subs)
|
||||||
|
|
||||||
credits_time = try_get(title_info, lambda x: x['skipData']['INTRO']['endTime'])
|
credits_time = try_get(title_info, lambda x: x['skipData']['INTRO']['endTime'])
|
||||||
is_episode = title_info.get('vodType') == 'EPISODE'
|
is_episode = title_info_.get('vodType') == 'EPISODE'
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': asin,
|
'id': asin,
|
||||||
'title': title_info.get('name'),
|
'title': title_info_.get('name'),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'subtitles': subtitles,
|
'subtitles': subtitles,
|
||||||
'language': traverse_obj(title_info, ('audioTracks', 0)),
|
'language': traverse_obj(title_info, ('audioTracks', 0)),
|
||||||
'thumbnails': [{
|
'thumbnails': [{
|
||||||
'id': 'imageSrc',
|
'id': 'imageSrc',
|
||||||
'url': title_info.get('imageSrc'),
|
'url': title_info_.get('imageSrc'),
|
||||||
}] if title_info.get('imageSrc') else [],
|
}] if title_info_.get('imageSrc') else [],
|
||||||
'description': traverse_obj(title_info_, ('description', 'synopsis')),
|
'description': traverse_obj(title_info_, ('synopsis')),
|
||||||
'release_timestamp': int_or_none(try_get(title_info_, lambda x: x['publicReleaseDateUTC'] / 1000)),
|
'release_timestamp': int_or_none(try_get(title_info_, lambda x: x['publicReleaseDateUTC'] / 1000)),
|
||||||
'duration': traverse_obj(title_info, ('description', 'contentLengthInSeconds')),
|
'duration': traverse_obj(title_info_, ('contentLengthInSeconds')),
|
||||||
'chapters': [{
|
'chapters': [{
|
||||||
'start_time': credits_time,
|
'start_time': credits_time,
|
||||||
'title': 'End Credits',
|
'title': 'End Credits',
|
||||||
|
Loading…
Reference in New Issue
Block a user