Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env zsh
- music=/mnt/unsort/storage/music
- playing=$music/$(mpc -f %file% current)
- case $1 in
- rate)
- if [[ $2 -ge 0 ]] && [[ $2 -lt 6 ]]; then
- mpc sticker "$(mpc -f %file% current)" set rating $2
- fi
- ;;
- rating)
- mpc sticker "$(mpc -f %file% current)" get rating
- ;;
- sort)
- beet -v -l $music/sorted.db -d $music/sorted import $playing
- ;;
- delete)
- echo rm -v $playing
- ;;
- esac
Add Comment
Please, Sign In to add comment