From 0189da0878613b92afc5a93432e57fb6f419688b Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 3 Aug 2024 19:35:53 +0200 Subject: add script for quickly viewing youtube live stream chat dumps --- .local/share/bin/vodchat | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .local/share/bin/vodchat diff --git a/.local/share/bin/vodchat b/.local/share/bin/vodchat new file mode 100755 index 0000000..f233348 --- /dev/null +++ b/.local/share/bin/vodchat @@ -0,0 +1,3 @@ +#!/bin/sh +input_file="$1" +jq --raw-output '.replayChatItemAction.actions[].addChatItemAction.item.liveChatTextMessageRenderer | "[" + (.timestampUsec | tonumber / 1e6 | todateiso8601) + "] " + .authorName.simpleText + ": " + .message.runs[].text' "$input_file" 2>/dev/null -- cgit v1.2.3