dotfiles/.bin/media-ccc-play
2024-02-14 07:55:58 +01:00

19 lines
257 B
Bash
Executable File

#!/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