]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[twitch] fix video comments URL(#18593)(closes #15828)
authorRemita Amine <remitamine@gmail.com>
Sat, 9 Nov 2019 10:01:07 +0000 (11:01 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 9 Nov 2019 10:01:07 +0000 (11:01 +0100)
youtube_dl/extractor/twitch.py

index a5681409c368662aa0939c12979c91cca2836c26..8c0d70010a1a3d3b746b4ec846611d4ac6755210 100644 (file)
@@ -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',
                 }],