seamus

commit 0d8f68c0028a80875581c40bf5f66c0dd504ea5b

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

status: display the album artist

 src/seamus.c | 5 ++++-


diff --git a/src/seamus.c b/src/seamus.c
index 9f5ea0928673684fbb38c4da2e4ac73e362d6d3a..d1011863e45f030ec55e85e29822053797fbb84a 100755
--- a/src/seamus.c
+++ b/src/seamus.c
@@ -58,9 +58,11 @@ 			state = "[paused]";
 		}
 
 		if (song != NULL) {
+			enum mpd_tag_type tag_artist = mpd_tag_name_iparse("Artist");
 			enum mpd_tag_type tag_title = mpd_tag_name_iparse("Title");
 
 			const char *title = mpd_song_get_tag(song, tag_title, 0);
+			const char *artist = mpd_song_get_tag(song, tag_artist, 0);
 
 			char *elapsed_time = (char*) malloc(13 * sizeof(char));
 
@@ -75,8 +77,9 @@ 					mpd_status_get_total_time(status) / 60,
 					mpd_status_get_total_time(status) % 60);
 
 			// Move this into a proper struct
-			asprintf(str, "%s %s: %s/%s",
+			asprintf(str, "%s %s - %s: %s/%s",
 				state,
+				artist,
 				title,
 				elapsed_time,
 				total_time