aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/vodchat
blob: f233348d2dce404748bd5abad11d54d8014a4ae7 (plain)
1
2
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