From 0488356c142dd578a6f7d96acbeac0510fa9e2a8 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 26 Jun 2011 12:32:24 +0200 Subject: Send metadata of song related to event to eventcmd ...instead of the current song. Closes #131. --- contrib/pianobar.1 | 4 ++-- src/ui_act.c | 2 +- 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 -- cgit v1.2.3