diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2012-07-08 11:14:07 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2013-04-10 15:23:06 +0200 |
commit | 1566a708901e34f714f937af20270e61c237bcba (patch) | |
tree | fe10d1f49a3df022a417ec471313cfabcc4c3080 | |
parent | 055cb3b3909c014ebc16d8490f8f57ac5908ef55 (diff) |
Get disc count from musicbrainz.
Helps to tell multiple releases apart where one is a normal release
and the other is a special release with a bonus disc.
https://bugzilla.gnome.org/show_bug.cgi?id=674926
-rw-r--r-- | libjuicer/sj-metadata-musicbrainz5.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libjuicer/sj-metadata-musicbrainz5.c b/libjuicer/sj-metadata-musicbrainz5.c index 8a3f18a..46b8ae8 100644 --- a/libjuicer/sj-metadata-musicbrainz5.c +++ b/libjuicer/sj-metadata-musicbrainz5.c @@ -431,6 +431,7 @@ make_album_from_release (Mb5ReleaseGroup group, AlbumDetails *album; Mb5ArtistCredit credit; Mb5RelationListList relationlists; + Mb5MediumList media; GList *artists; char *date = NULL; char buffer[512]; /* for the GET macro */ @@ -440,6 +441,10 @@ make_album_from_release (Mb5ReleaseGroup group, album = g_new0 (AlbumDetails, 1); + media = mb5_release_get_mediumlist (release); + if (media) + album->disc_count = mb5_medium_list_size (media); + GET (album->album_id, mb5_release_get_id, release); GET (album->title, mb5_medium_get_title, medium); if (album->title == NULL) |