After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761868 - [PATCH] add album disc key
[PATCH] add album disc key
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: core
git master
Other Linux
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks: 761869
 
 
Reported: 2016-02-11 16:20 UTC by Marinus Schraal
Modified: 2016-05-13 15:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add GRL_METADATA_ALBUM_DISC (3.51 KB, patch)
2016-02-11 16:20 UTC, Marinus Schraal
none Details | Review
add GRL_METADATA_ALBUM_DISC (4.20 KB, patch)
2016-03-02 13:19 UTC, Marinus Schraal
none Details | Review
core: Add GRL_METADATA_KEY_ALBUM_DISC (4.25 KB, patch)
2016-05-13 11:59 UTC, Marinus Schraal
none Details | Review
core: add GRL_METADATA_KEY_ALBUM_DISC (4.20 KB, patch)
2016-05-13 12:07 UTC, Marinus Schraal
none Details | Review

Description Marinus Schraal 2016-02-11 16:20:45 UTC
Created attachment 320891 [details] [review]
add GRL_METADATA_ALBUM_DISC

Adds GRL_METADATA_ALBUM_DISC for music albums that are on several discs. This key would return the disc the song is on.

Intended to be used by gnome-music.
Comment 1 Bastien Nocera 2016-03-02 10:51:41 UTC
Review of attachment 320891 [details] [review]:

The API docs need work.

::: src/data/grl-media.c
@@ +1748,3 @@
+ * grl_media_set_album_disc:
+ * @media: the media instance
+ * @album_disc: the audio's album disc

disc name?

@@ +3142,3 @@
+ * @media: the media instance
+ *
+ * Returns: the disc number of the media

Well, the media doesn't have a disc number, it's not on a disc.

::: src/grl-metadata-key.c
@@ +645,3 @@
+                                                               "The disc number of the album",
+                                                               -1, G_MAXINT,
+                                                               -1,

Why is -1 the default value? "disc 0" is probably already enough to detect that it's unset, no?
Comment 2 Marinus Schraal 2016-03-02 13:19:35 UTC
Created attachment 322850 [details] [review]
add GRL_METADATA_ALBUM_DISC

It is not easy to convey what an album disc is succinctly, hope this is better.
Comment 3 Marinus Schraal 2016-05-13 11:59:20 UTC
Created attachment 327785 [details] [review]
core: Add GRL_METADATA_KEY_ALBUM_DISC

Addition of GRL_METADATA_KEY_ALBUM_DISC: gives the specific disc number
on which the media is located on a physical multi-disc set album.

https://bugzilla.gnome.org/show_bug.cgi?id=761868

https://bugzilla.gnome.org/show_bug.cgi?id=761624
Comment 4 Marinus Schraal 2016-05-13 12:07:08 UTC
Created attachment 327788 [details] [review]
core: add GRL_METADATA_KEY_ALBUM_DISC

Addition of GRL_METADATA_KEY_ALBUM_DISC: gives the specific disc number
on which the media is located on a physical multi-disc set album.
Comment 5 Bastien Nocera 2016-05-13 15:03:22 UTC
I renamed the key GRL_METADATA_KEY_ALBUM_DISC_NUMBER, to make it clear it was a number (and not possibly a string), and changed the grammar slightly.