浏览代码

[twitch] fix video comments URL(#18593)(closes #15828)

Remita Amine 5 年之前
父节点
当前提交
ce112a8c19
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      youtube_dl/extractor/twitch.py

+ 2 - 3
youtube_dl/extractor/twitch.py

@@ -344,9 +344,8 @@ class TwitchVodIE(TwitchItemBaseIE):
             info['subtitles'] = {
                 'rechat': [{
                     'url': update_url_query(
-                        'https://rechat.twitch.tv/rechat-messages', {
-                            'video_id': 'v%s' % item_id,
-                            'start': info['timestamp'],
+                        'https://api.twitch.tv/v5/videos/%s/comments' % item_id, {
+                            'client_id': self._CLIENT_ID,
                         }),
                     'ext': 'json',
                 }],