diff --git a/doc/config b/doc/config index bbc712dd..cfbace71 100644 --- a/doc/config +++ b/doc/config @@ -141,9 +141,11 @@ ##### various settings ##### # ## -## Note: Custom command that will be executed each time song changes. -## It uses the same syntax as song format (for now playing song). -## Useful for notifications etc. +## Note: Custom command that will be executed each +## time song changes. Useful for notifications etc. +## +## Attention: It doesn't support song format anymore. +## Use `ncmpcpp --now-playing SONG_FORMAT` instead. ## #execute_on_song_change = "" # diff --git a/src/status.cpp b/src/status.cpp index 80122067..770391e9 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -368,7 +368,7 @@ void NcmpcppStatusChanged(Connection *, StatusChanges changed, void *) np = Mpd.GetCurrentSong(); if (!Config.execute_on_song_change.empty()) - system(np.toString(Config.execute_on_song_change).c_str()); + system(Config.execute_on_song_change.c_str()); if (Mpd.GetState() > psStop) WindowTitle(utf_to_locale_cpy(np.toString(Config.song_window_title_format))); if (Config.autocenter_mode && !myPlaylist->Main()->isFiltered())