Add MOC support to getsong

This commit is contained in:
Dylan 2016-02-16 00:12:15 +11:00
parent 5e6cc26b93
commit a1c9452bda

3
fetch
View file

@ -1107,6 +1107,9 @@ getsong () {
song=${song/tag title/-}
song=${song//[[:space:]]/ }
elif type -p mocp >/dev/null 2>&1; then
song="$(mocp -Q "%artist - %song")"
else
song="Unknown"
fi