summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pianobar.12
-rw-r--r--src/ui.c2
-rw-r--r--src/ui_act.c5
3 files changed, 7 insertions, 2 deletions
diff --git a/src/pianobar.1 b/src/pianobar.1
index a27b606..6a6bd33 100644
--- a/src/pianobar.1
+++ b/src/pianobar.1
@@ -212,7 +212,7 @@ 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) is supplied through stdin.
+song length in milliseconds, rating, album art url) is supplied through stdin.
Currently supported events are: artistbookmark, songban, songbookmark,
songexplain, songfinish, songlove, songmove, songshelf, songstart,
diff --git a/src/ui.c b/src/ui.c
index d115278..cef067d 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -599,6 +599,7 @@ void BarUiStartEventCmd (const BarSettings_t *settings, const char *type,
"artist=%s\n"
"title=%s\n"
"album=%s\n"
+ "coverArt=%s\n"
"stationName=%s\n"
"pRet=%i\n"
"pRetStr=%s\n"
@@ -610,6 +611,7 @@ void BarUiStartEventCmd (const BarSettings_t *settings, const char *type,
curSong == NULL ? "" : curSong->artist,
curSong == NULL ? "" : curSong->title,
curSong == NULL ? "" : curSong->album,
+ curSong == NULL ? "" : curSong->coverArt,
curStation == NULL ? "" : curStation->name,
pRet,
PianoErrorToStr (pRet),
diff --git a/src/ui_act.c b/src/ui_act.c
index 0f0cac2..35bc3ab 100644
--- a/src/ui_act.c
+++ b/src/ui_act.c
@@ -271,6 +271,7 @@ BarUiActCallback(BarUiActDebug) {
"artist:\t%s\n"
"audioFormat:\t%i\n"
"audioUrl:\t%s\n"
+ "coverArt:\t%s\n"
"fileGain:\t%f\n"
"musicId:\t%s\n"
"rating:\t%i\n"
@@ -280,7 +281,9 @@ BarUiActCallback(BarUiActDebug) {
"title:\t%s\n"
"userSeed:\t%s\n",
app->playlist->album, app->playlist->artist,
- app->playlist->audioFormat, app->playlist->audioUrl,
+ app->playlist->audioFormat,
+ app->playlist->audioUrl,
+ app->playlist->coverArt,
app->playlist->fileGain,
app->playlist->musicId, app->playlist->rating,
app->playlist->songType, app->playlist->stationId,