dbvideostriketeam / wubloader

MIT License
15 stars 8 forks source link

Show chat replay on restreamer page and transcript in editor #304

Closed ElementalAlchemist closed 2 years ago

ElementalAlchemist commented 2 years ago

Chat replay is here! This does all the things we've discussed in the meetings, plus other stuff I thought it'd be useful to support.

I didn't end up referencing Didero's code basically at all--I looked at the start of it, saw how YouTube-specific the first lines of it were, and thought it'd probably be easier to just make my own thing than to convert that script's chat downloader to parse our JSON instead.

Note that chat is not supported for streaming (which is to say, you must have a start and end time specified to see chat--chat will not be loaded for unbounded streams). This would complicate my code a bit but also is not supported by the restreamer server. I think we can consider that for a standalone enhancement in the future. (I could consider an enhancement where we do the pagination ourselves in Thrimbletrimmer, but it's worth noting that the restreamer chat archive gets saved about once per minute, which makes accurately retrieving the chat JSON somewhat more difficult.)

This also pulls emotes directly from Twitch. When we do our emote archiving, we may wish to choose to swap emote fetching to be from Wubloader instead. I would propose that this be a wholly separate project/PR from this one.