podcast-play.sh (325B)
1 #!/bin/sh 2 3 LOC="$HOME/Videos/Podcasts" 4 5 vid="$(find "${LOC}/" -type f | sed "s|${LOC}/||g" | fzf)" 6 7 [ "$vid" = "" ] && exit 8 9 fullpath="${LOC}/${vid}" 10 11 ${VIDEO_PLAYER:-mpv} "$fullpath" 12 13 read -p "Delete podcast? (y/N) " yesOrNoDelete 14 15 if [ "$yesOrNoDelete" = "y" ] || [ "$yesOrNoDelete" = "Y" ]; then 16 trash-put "$fullpath" 17 fi