Don't restart playback when unnecessary

Because mpc-i3-playlists was doing that.
Because I'm bad.
This commit is contained in:
Salt 2017-08-01 00:54:55 -05:00
parent feef17f985
commit 6f0abd1b31

View File

@ -11,5 +11,7 @@ if [ "$1" = "--clear" ]; then
mpc clear mpc clear
fi fi
mpc load $PLAYLIST mpc load $PLAYLIST
if [[ "$(mpc)" != *"playing"* ]]; then
mpc play mpc play
fi
notify-send -u low -t 5 -a 'Mopidy' "$PLAYLIST" "Beginning playback of playlist $PLAYLIST" notify-send -u low -t 5 -a 'Mopidy' "$PLAYLIST" "Beginning playback of playlist $PLAYLIST"