Open dimasahmad opened 3 years ago
I don't really familiar with youtube-dl code, but it seems the Twitch rechat endpoint doesn't need any cookies at all to work. So maybe, we need to change the behaviour to download the rechat file without cookies or replicate the proper authentication for the endpoint like the way Twitch web access them.
youtube-dl won't help you here, it doesn't download chat (only first 30 secs). Workaround here: https://github.com/ytdl-org/youtube-dl/issues/12266#issuecomment-465359916 but not sure if it works for sub-only VODs
it doesn't download chat (only first 30 secs)
I think that's a different issue.
Youtube-dl can download the chat in .rechat.json format. You can try it yourself with clips or public VODs and look at the .description.json file (you need to use some flags to activate the description and chat file) there is rechat URL for the rechat file.
This issue is completely different from yours. We can download chat (subs) from public videos, but won't work with subscribers-only VODs.
The problem is, twitch endpoint refuses the request from youtube-dl because of the way ytdl handles the rechat URL when we using cookies.
Checklist
Verbose log
Description
Downloading subtitles (the chat) for Twitch video-on-demands failed when using
--cookies "cookies.txt"
argument with this error:It works without the
--cookies
argument for public VODs, but then I can't download subscribers-only VODs. Without--cookies
, I would getERROR: Failed to download m3u8 information: HTTP Error 403: Forbidden
for subs-only VODs.