diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-08-02 01:20:05 +0200 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2011-10-31 14:36:22 +0000 |
commit | 59912c0988001f4405f1c47b2e37d048b8204d33 (patch) | |
tree | c62fcc80a137b2f5a8c10bf5feaa13dc9fca4b79 | |
parent | 15d7f722b8027e54f8868d9af183e757999bab25 (diff) |
mb-test: display release date
-rw-r--r-- | tests/mb-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mb-test.c b/tests/mb-test.c index 31c8d88..127d33c 100644 --- a/tests/mb-test.c +++ b/tests/mb-test.c @@ -75,7 +75,8 @@ metadata_cb (SjMetadataGetter *metadata, GList *albums, const GError *error) if (album->is_spoken_word) g_print ("Is spoken word\n"); disc_number = g_strdup_printf (" (Disc %d)", album->disc_number); - g_print ("'%s', by %s%s\n", album->title, album->artist, album->disc_number ? disc_number : ""); + g_print ("'%s', by %s%s, released %d-%02d-%02d\n", album->title, album->artist, album->disc_number ? disc_number : "", + g_date_get_year (album->release_date), g_date_get_month (album->release_date), g_date_get_day (album->release_date)); g_free (disc_number); while (album->tracks) { TrackDetails *track = (TrackDetails*)album->tracks->data; |