Do not alert on playlist clearing
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 1 Aug 2018 04:47:44 +0000 (00:47 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 1 Aug 2018 04:47:44 +0000 (00:47 -0400)
bin/khatus_controller

index 836a915..a3b97c7 100755 (executable)
@@ -174,7 +174,7 @@ function set_mpd_playing(    \
 function alert_check_mpd(    curr, prev) {
     prev = db["mpd_playing_prev"]
     curr = db["mpd_playing_curr"]
-    if (curr != prev) {
+    if (curr && curr != prev) {
         alert_trigger_low("alert_check_mpd", "NowPlaying", curr)
     }
 }
This page took 0.021087 seconds and 4 git commands to generate.