From 6e0ad21b42ef53cee1fb82058c4cd0320f8d169f Mon Sep 17 00:00:00 2001 From: ufukk <5383665+ufukk@users.noreply.github.com> Date: Sun, 3 Dec 2023 01:09:25 +0300 Subject: [PATCH] Update yt_dlp/extractor/trtworld.py Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> --- yt_dlp/extractor/trtworld.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/trtworld.py b/yt_dlp/extractor/trtworld.py index d82a749231..861d9b593a 100644 --- a/yt_dlp/extractor/trtworld.py +++ b/yt_dlp/extractor/trtworld.py @@ -49,9 +49,12 @@ class TrtWorldIE(InfoExtractor): raise ExtractorError('No video found', expected=True) return { - 'id': str(display_id), + 'id': display_id, 'formats': formats, - 'subtitles': subtitles, - 'release_timestamp': parse_iso8601(published_date_str), - 'title': self._html_extract_title(webpage) + **traverse_obj(nuxtjs_data, ('platforms', ('website', 'ott'), { + 'title': ('fields', 'title', 'text'), + 'description': ('fields', 'description', 'text'), + 'thumbnail': ('fields', 'thumbnail', 'url', {url_or_none}), + 'release_timestamp': ('published', 'date', {parse_iso8601}), + }), get_all=False), }