diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-08-23 21:42:54 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-08-23 21:42:54 +0200 |
commit | 56fd7bd7fc2aafff0c2a0c6fcad251b7601aba04 (patch) | |
tree | 218f7cbea86121ccd271518a889272a70cfe0374 | |
parent | f5ea4634b17b9b1456e2adf820147ffd6fddb022 (diff) |
do not support song format for command that is executed on song change
-rw-r--r-- | doc/config | 8 | ||||
-rw-r--r-- | src/status.cpp | 2 |
2 files changed, 6 insertions, 4 deletions
@@ -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()) |