do not support song format for command that is executed on song change

This commit is contained in:
Andrzej Rybczak
2009-08-23 21:42:54 +02:00
parent f5ea4634b1
commit 56fd7bd7fc
2 changed files with 6 additions and 4 deletions

View File

@@ -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 = ""
#

View File

@@ -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())