mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 09:28:33 +00:00
revert moving comment extraction to late running function
This commit is contained in:
parent
167812af9d
commit
4ddd8de69b
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user