summary refs log tree commit diff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-11-09 11:01:07 +0100
committerRemita Amine <remitamine@gmail.com>2019-11-09 11:01:07 +0100
commitce112a8c19ebcc9d401ff26a5cdcf58ba565901c (patch)
treeb43d7c43c8e23657ddbd91d75a6ba09a2f99f1f6
parent18ca61c5e153d1c1cb8b9a2de3c8b9dfdaa69b0e (diff)
downloadyoutube-dl-ce112a8c19ebcc9d401ff26a5cdcf58ba565901c.tar.gz
youtube-dl-ce112a8c19ebcc9d401ff26a5cdcf58ba565901c.tar.xz
youtube-dl-ce112a8c19ebcc9d401ff26a5cdcf58ba565901c.zip
[twitch] fix video comments URL(#18593)(closes #15828)
-rw-r--r--youtube_dl/extractor/twitch.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py
index a5681409c..8c0d70010 100644
--- a/youtube_dl/extractor/twitch.py
+++ b/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',
                 }],