revert moving comment extraction to late running function

This commit is contained in:
mpeter50 2023-09-09 21:56:36 +02:00
parent e4a56bd921
commit 09760b227d
1 changed files with 1 additions and 6 deletions

View File

@ -633,12 +633,7 @@ class TwitchVodIE(TwitchBaseIE):
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