add loop to reddit browse mpv script
Prithu Goswami prithugoswami524@gmail.com
Fri, 25 Dec 2020 19:37:16 +0530
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
bin/scripts/reddit-browse
→
bin/scripts/reddit-browse
@@ -18,7 +18,7 @@ tee /tmp/rtmp.json | jq '.data.children[] |.data.url' |\
grep -E 'jpg|png"$' | xargs feh -F 2>/dev/null cat /tmp/rtmp.json | jq -r '.data.children[] |.data.url' |\ - grep -E '(redgifs|gfycat|v.red)' | xargs mpv + grep -E '(redgifs|gfycat|v.red)' | xargs mpv --loop-file=inf after=$(cat /tmp/rtmp.json | jq '.data.after' | tr -d '"') printf "continue? [y/n]: "; read ans