From 07557f9fe57c94eb16cf60593303a280e5157346 Mon Sep 17 00:00:00 2001 From: Marius Orcsik Date: Wed, 21 Feb 2018 11:16:20 +0100 Subject: [PATCH] Add %art_url formatting placeholder --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index 26bb58b..c0ed5d3 100644 --- a/src/main.c +++ b/src/main.c @@ -29,6 +29,7 @@ "Artist:\t\t" ARG_INFO_ARTIST_NAME "\n" \ "Album:\t\t" ARG_INFO_ALBUM_NAME "\n" \ "Album Artist:\t" ARG_INFO_ALBUM_ARTIST "\n" \ +"Art URL:\t" ARG_INFO_ART_URL "\n" \ "Track:\t\t" ARG_INFO_TRACK_NUMBER "\n" \ "Length:\t\t" ARG_INFO_TRACK_LENGTH "\n" \ "Volume:\t\t" ARG_INFO_VOLUME "\n" \ @@ -46,6 +47,7 @@ #define ARG_INFO_ARTIST_NAME "%artist_name" #define ARG_INFO_ALBUM_NAME "%album_name" #define ARG_INFO_ALBUM_ARTIST "%album_artist" +#define ARG_INFO_ART_URL "%art_url" #define ARG_INFO_BITRATE "%bitrate" #define ARG_INFO_COMMENT "%comment" @@ -82,6 +84,7 @@ "\t%" ARG_INFO_ARTIST_NAME "\tprints the artist name\n" \ "\t%" ARG_INFO_ALBUM_NAME "\tprints the album name\n" \ "\t%" ARG_INFO_ALBUM_ARTIST "\tprints the album artist\n" \ +"\t%" ARG_INFO_ART_URL "\tprints the URL of the cover art image\n" \ "\t%" ARG_INFO_PLAYBACK_STATUS "\tprints the playback status\n" \ "\t%" ARG_INFO_SHUFFLE_MODE "\tprints the shuffle mode\n" \ "\t%" ARG_INFO_VOLUME "\t\tprints the volume\n" \ @@ -197,6 +200,7 @@ void print_mpris_info(mpris_properties *props, char* format) output = str_replace(output, ARG_INFO_TRACK_NUMBER, track_number_label); output = str_replace(output, ARG_INFO_BITRATE, bitrate_label); output = str_replace(output, ARG_INFO_COMMENT, props->metadata.comment); + output = str_replace(output, ARG_INFO_ART_URL, props->metadata.url); fprintf(stdout, "%s\n", output); free(output);