From a1c9452bdae40fd662fbb8d4d4b46415b6644949 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 16 Feb 2016 00:12:15 +1100 Subject: [PATCH] Add MOC support to getsong --- fetch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fetch b/fetch index a8f5fc95..20565e8c 100755 --- a/fetch +++ b/fetch @@ -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