From: Siraaj Khandkar Date: Wed, 1 Aug 2018 04:47:44 +0000 (-0400) Subject: Do not alert on playlist clearing X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=e8c1404e2324887381d677b490082d67a80e3f01;p=khatus.git Do not alert on playlist clearing --- diff --git a/bin/khatus_controller b/bin/khatus_controller index 836a915..a3b97c7 100755 --- a/bin/khatus_controller +++ b/bin/khatus_controller @@ -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) } }