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 732878 - Include mb-track-id and mb-artist-id metadata key
Include mb-track-id and mb-artist-id metadata 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:
 
 
Reported: 2014-07-08 05:38 UTC by Victor Toso
Modified: 2014-11-27 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix: use tabs instead of spaces (1.00 KB, patch)
2014-07-08 05:41 UTC, Victor Toso
committed Details | Review
core: add "mb-track-id" (5.80 KB, patch)
2014-07-08 05:42 UTC, Victor Toso
needs-work Details | Review
core: add GRL_METADATA_KEY_MB_TRACK_ID (5.85 KB, patch)
2014-08-18 05:47 UTC, Victor Toso
committed Details | Review
core: add GRL_METADATA_KEY_MB_ARTIST_ID (8.59 KB, patch)
2014-08-18 05:49 UTC, Victor Toso
committed Details | Review

Description Victor Toso 2014-07-08 05:38:34 UTC
As we already have the mb-album-id it would be interesting if we include a few more keys related to MusicBrainz.

At the moment, AcoustID source would benefit with it!
Comment 1 Victor Toso 2014-07-08 05:41:40 UTC
Created attachment 280102 [details] [review]
fix: use tabs instead of spaces

small fix before inserting the mb-track-id
Comment 2 Victor Toso 2014-07-08 05:42:33 UTC
Created attachment 280103 [details] [review]
core: add "mb-track-id"

MusicBrainz track ID
Comment 3 Bastien Nocera 2014-07-08 08:03:54 UTC
Review of attachment 280102 [details] [review]:

Sure.
Comment 4 Bastien Nocera 2014-07-08 08:06:14 UTC
Review of attachment 280103 [details] [review]:

Add a link to the definition of that identifier in the commit message.

::: src/data/grl-media-audio.c
@@ +473,3 @@
+grl_media_audio_get_mb_track_id (GrlMediaAudio *audio)
+{
+  return grl_data_get_string (GRL_DATA (audio), GRL_METADATA_KEY_MB_TRACK_ID);

Add a guard (g_return_val_if_fail...)

::: src/grl-metadata-key.h
@@ +100,3 @@
 #define GRL_METADATA_KEY_TITLE_FROM_FILENAME  51
 #define GRL_METADATA_KEY_MB_ALBUM_ID          52
+#define GRL_METADATA_KEY_MB_TRACK_ID          53

Pretty sure that you're missing a doc entry for this (needs a URL link as well)
Comment 5 Victor Toso 2014-08-18 05:45:18 UTC
Review of attachment 280102 [details] [review]:

up
Comment 6 Victor Toso 2014-08-18 05:47:44 UTC
Created attachment 283711 [details] [review]
core: add GRL_METADATA_KEY_MB_TRACK_ID

MusicBrainz track identifier.
Comment 7 Victor Toso 2014-08-18 05:49:38 UTC
Created attachment 283712 [details] [review]
core: add GRL_METADATA_KEY_MB_ARTIST_ID

MusicBrainz artist identifier.
Comment 8 Victor Toso 2014-08-18 05:56:31 UTC
(In reply to comment #4)
> Review of attachment 280103 [details] [review]:
> 
> Add a link to the definition of that identifier in the commit message.

Forgot this one, I'll edit the commit message.
mb-track-id is related to recording: https://wiki.musicbrainz.org/Recording
and mb-artist-id https://wiki.musicbrainz.org/artist

> ::: src/data/grl-media-audio.c
> @@ +473,3 @@
> +grl_media_audio_get_mb_track_id (GrlMediaAudio *audio)
> +{
> +  return grl_data_get_string (GRL_DATA (audio), GRL_METADATA_KEY_MB_TRACK_ID);
> 
> Add a guard (g_return_val_if_fail...)

Fixed.

> 
> ::: src/grl-metadata-key.h
> @@ +100,3 @@
>  #define GRL_METADATA_KEY_TITLE_FROM_FILENAME  51
>  #define GRL_METADATA_KEY_MB_ALBUM_ID          52
> +#define GRL_METADATA_KEY_MB_TRACK_ID          53
> 
> Pretty sure that you're missing a doc entry for this (needs a URL link as well)

I didn't find it. I'm using other commit as referece to add those keys  ec35e862057
Comment 9 Bastien Nocera 2014-08-18 09:24:09 UTC
Review of attachment 283711 [details] [review]:

Looks good.
Comment 10 Bastien Nocera 2014-08-18 09:25:08 UTC
Review of attachment 283712 [details] [review]:

Looks good.
Comment 11 Bastien Nocera 2014-11-27 13:21:30 UTC
Attachment 283711 [details] pushed as 9cee9ff - core: add GRL_METADATA_KEY_MB_TRACK_ID
Attachment 283712 [details] pushed as 2fa07bd - core: add GRL_METADATA_KEY_MB_ARTIST_ID