summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-06-26 12:32:24 +0200
committerLars-Dominik Braun <lars@6xq.net>2011-06-26 12:32:24 +0200
commit0488356c142dd578a6f7d96acbeac0510fa9e2a8 (patch)
tree5fcae3a297000491bf22c39b8f6fdfcde808c574
parent3905f9b23566abbfe2f03a8caeef8515f53c6a59 (diff)
downloadpianobar-windows-0488356c142dd578a6f7d96acbeac0510fa9e2a8.tar.gz
pianobar-windows-0488356c142dd578a6f7d96acbeac0510fa9e2a8.tar.bz2
pianobar-windows-0488356c142dd578a6f7d96acbeac0510fa9e2a8.zip
Send metadata of song related to event to eventcmd
...instead of the current song. Closes #131.
-rw-r--r--contrib/pianobar.14
-rw-r--r--src/ui_act.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/pianobar.1 b/contrib/pianobar.1
index 0f7ece1..d036c1e 100644
--- a/contrib/pianobar.1
+++ b/contrib/pianobar.1
@@ -286,8 +286,8 @@ Another example:
can report certain "events" to an external application (see
.B CONFIGURATION
). This application is started with the event name as it's first argument. More
-information (artist, title, album, stationName, error code, error description,
-song length in milliseconds, rating, album art url) is supplied through stdin.
+information like error code and description, was well as song information
+related to the current event, is supplied through stdin.
Currently supported events are: artistbookmark, songban, songbookmark,
songexplain, songfinish, songlove, songmove, songshelf, songstart,
diff --git a/src/ui_act.c b/src/ui_act.c
index 06affa1..22ca2da 100644
--- a/src/ui_act.c
+++ b/src/ui_act.c
@@ -35,7 +35,7 @@ THE SOFTWARE.
/* standard eventcmd call
*/
#define BarUiActDefaultEventcmd(name) BarUiStartEventCmd (&app->settings, \
- name, app->curStation, app->playlist, &app->player, app->ph.stations, \
+ name, selStation, selSong, &app->player, app->ph.stations, \
pRet, wRet)
/* standard piano call