dotfiles/.bin/apps/media.ccc.de

20 lines
347 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)
S=$(cat ~/.cache/media.ccc.list | fgrep '/webm-hd/' | $DMENU_CMD -p "Media CCC" -l 40)
if [ ! -z "$S" ]
then
echo "Playing: $S"
mpv "$S"
fi