Expose GrlMedia properties
GrlMedia
has a lot of "properties": artist
, director
, genre
, lyrics
, etc..
However, to use them, we must use methods like grl_media_set_artist
, grl_media_add_artist
, grl_media_get_artist
etc... While these are incredibly convenient for C, properties are more useful for object-oriented languages like Python and JavaScript.
Now, I believe it would be relatively straightforward to add all those properties with a helper function. Still, the issue I can see is that some properties also expect multiple values (like artist, director, etc..)
I'm not sure how to handle this, but maybe there could be 2 different properties:
-
artist
: which returns one artist (presumably the first one) -
artists
: return aGList
(or GSList or whatever) as those are automatically mapped to arrays in object oriented languages.