fixed output showing as playing when mpc was showing ERROR

Former-commit-id: 016c46e920
Former-commit-id: 67a923b72bb27bf7781d58196e195b3497eeb1d9
Former-commit-id: 374d880703d589d8ec5ca658c36535a07a2c6904
This commit is contained in:
elena 2017-09-06 01:45:33 +03:00
parent 7b33232384
commit 134769b1ae

View file

@ -47,7 +47,7 @@ do
# Vivaldi
#if [ ${#NCMPCPP} -eq "0" ] && [[ "$MPDSTATE" = "[paused]" ]]; then
if [[ "$MPDSTATE" = "[paused]" ]]; then
if [[ "$MPDSTATE" != "[playing]" ]]; then
# Grab youtube window title
# Depending on your browser, uncomment the correct INPUT line (and comment the others)
# Vivaldi
@ -75,7 +75,7 @@ do
# If no youtube window is found (+pandora)
#if [ ${#YOUTUBE} -eq "0" ] && [ ${#NCMPCPP} -eq "0" ]; then
if [ ${#YOUTUBE} -eq "0" ] && [[ "$MPDSTATE" = "[paused]" ]]; then
if [ ${#YOUTUBE} -eq "0" ] && [[ "$MPDSTATE" != "[playing]" ]]; then
if [ ${#PANDORA} -eq "0" ]; then
#echo "  "
echo "  "