twitch-vodarchive: add

This commit is contained in:
yosh 2023-11-07 19:04:14 -05:00
parent 873ef1fe32
commit 997efef64a
1 changed files with 9 additions and 0 deletions

9
twitch-vodarchive Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -euf
filename="$(yt-dlp -O '%(upload_date>%Y-%m-%d)s %(title)s.%(ext)s' "$1")"
yt-dlp -o "$filename" "$1"
for ext in json html txt; do
twitchdownloader chatdownload -o "${filename%.*}.$ext" -u "$1"
done