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


