dotfiles/.bin/media-ccc-play

19 lines
257 B
Plaintext
Raw Normal View History

#!/bin/sh
. ~/.bin/_config
if [ ! -f ~/.cache/media.ccc.list ]
then
media-ccc-list-update
fi
S=$(cat ~/.cache/media.ccc.list | fgrep '/webm-hd/' | fzf -i -e -d '/' --with-nth=-4,-3,-1)
if [ ! -z "$S" ]
then
echo "Playing: $S"
mpv "$S"
fi