summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index 5df8cdc..0e8f80b 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -602,12 +602,17 @@ void BarUiStartEventCmd (const BarSettings_t *settings, const char *type,
pid_t chld;
char pipeBuf[1024];
int pipeFd[2];
+ PianoStation_t *songStation = NULL;
if (settings->eventCmd == NULL) {
/* nothing to do... */
return;
}
+ if (curSong != NULL && stations != NULL && curStation->isQuickMix) {
+ songStation = PianoFindStationById (stations, curSong->stationId);
+ }
+
/* prepare stdin content */
memset (pipeBuf, 0, sizeof (pipeBuf));
snprintf (pipeBuf, sizeof (pipeBuf),
@@ -616,6 +621,7 @@ void BarUiStartEventCmd (const BarSettings_t *settings, const char *type,
"album=%s\n"
"coverArt=%s\n"
"stationName=%s\n"
+ "songStationName=%s\n"
"pRet=%i\n"
"pRetStr=%s\n"
"wRet=%i\n"
@@ -628,6 +634,7 @@ void BarUiStartEventCmd (const BarSettings_t *settings, const char *type,
curSong == NULL ? "" : curSong->album,
curSong == NULL ? "" : curSong->coverArt,
curStation == NULL ? "" : curStation->name,
+ songStation == NULL ? "" : songStation->name,
pRet,
PianoErrorToStr (pRet),
wRet,