lay295 / TwitchDownloader

Twitch VOD/Clip Downloader - Chat Download/Render/Replay
MIT License
2.68k stars 261 forks source link

Possible to support livestream IRC raw message input file for chat render? #1024

Open loopedice opened 6 months ago

loopedice commented 6 months ago

Checklist

Write your feature request here

Not asking to include the ability to download a livestream chat as it is going, but more so to provide it as an option when using the chat render CLI to take it as an input argument.

As shown in the twitch IRC example here https://dev.twitch.tv/docs/irc/example-parser/#parser-output. Livestream twitch chats will output the below raw strings, which I believe contains mostly everything needed to render the chat like the VOD version. Only thing missing is the start and end time, but you could infer that from the first line tmi-sent-ts=1550868292494 and last line tmi-sent-ts=xxx of the file.

Likewise looping through and adding the time between messages should be doable as well.

@badges=staff/1,broadcaster/1,turbo/1;color=#FF0000;display-name=PetsgomOO;emote-only=1;emotes=33:0-7;flags=0-7:A.6/P.6,25-36:A.1/I.2;id=c285c9ed-8b1b-4702-ae1c-c64d76cc74ef;mod=0;room-id=81046256;subscriber=0;turbo=0;tmi-sent-ts=1550868292494;user-id=81046256;user-type=staff :petsgomoo!petsgomoo@petsgomoo.tmi.twitch.tv PRIVMSG #petsgomoo :DansGame

Indeed the example in the link showcases how to parse this into a JSON format already, but it isn't compatible with TwitchDownloader.

ScrubN commented 6 months ago

This is an interesting idea. I don't think I want to add the support to TwitchDownloader for the time being, however I will add it to the project I am working on to address #629.

The idea of the project is to be a utility for translating chats from other logging services into TwitchDownloader compatible chats. At the moment the project is not public as it is still in development, but I will see about prioritizing it a bit more.

loopedice commented 6 months ago

@ScrubN great to hear, look forward to it!