Update yt_dlp/extractor/trtworld.py

Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
This commit is contained in:
ufukk 2023-12-03 01:09:25 +03:00 committed by GitHub
parent c42100b18d
commit 6e0ad21b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,9 +49,12 @@ class TrtWorldIE(InfoExtractor):
raise ExtractorError('No video found', expected=True) raise ExtractorError('No video found', expected=True)
return { return {
'id': str(display_id), 'id': display_id,
'formats': formats, 'formats': formats,
'subtitles': subtitles, **traverse_obj(nuxtjs_data, ('platforms', ('website', 'ott'), {
'release_timestamp': parse_iso8601(published_date_str), 'title': ('fields', 'title', 'text'),
'title': self._html_extract_title(webpage) 'description': ('fields', 'description', 'text'),
'thumbnail': ('fields', 'thumbnail', 'url', {url_or_none}),
'release_timestamp': ('published', 'date', {parse_iso8601}),
}), get_all=False),
} }