From 4ddd8de69bca3779c148b9bbb87c9a0cd78fe62b Mon Sep 17 00:00:00 2001 From: mpeter50 <83356418+mpeter50@users.noreply.github.com> Date: Sat, 9 Sep 2023 21:56:36 +0200 Subject: [PATCH] revert moving comment extraction to late running function --- yt_dlp/extractor/twitch.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/yt_dlp/extractor/twitch.py b/yt_dlp/extractor/twitch.py index 414cd9866..215386c82 100644 --- a/yt_dlp/extractor/twitch.py +++ b/yt_dlp/extractor/twitch.py @@ -639,12 +639,7 @@ def _real_extract(self, url): info['start_time'] = parse_duration(query['t'][0]) if info.get('timestamp'): - info['subtitles'] = {'rechat': [{ - 'url': update_url_query(f'https://api.twitch.tv/v5/videos/{vod_id}/comments', - {'client_id': self._CLIENT_ID}), - 'ext': 'json', - }]} - info['__post_extractor'] = lambda: {'subtitles': self.extract_subtitles(vod_id)} + info['subtitles'] = self.extract_subtitles(vod_id) return info