1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-28 01:18:30 +00:00

revert moving comment extraction to late running function

This commit is contained in:
mpeter50 2023-09-09 21:56:36 +02:00
parent 167812af9d
commit 4ddd8de69b

View File

@ -639,12 +639,7 @@ def _real_extract(self, url):
info['start_time'] = parse_duration(query['t'][0]) info['start_time'] = parse_duration(query['t'][0])
if info.get('timestamp'): if info.get('timestamp'):
info['subtitles'] = {'rechat': [{ info['subtitles'] = self.extract_subtitles(vod_id)
'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)}
return info return info