Re: [PATCH 01/14] tracker: make query requests asynchronous
- From: "Juan A." Suárez Romero <jasuarez igalia com>
 
- To: grilo-list gnome org
 
- Subject: Re: [PATCH 01/14] tracker: make query requests asynchronous
 
- Date: Tue, 18 Jan 2011 13:06:33 +0100
 
On Tue, 2011-01-18 at 12:00 +0000, Lionel Landwerlin wrote:
> > > +  insert_key_mapping (GRL_METADATA_KEY_ALBUM,
> > > +                      MEDIA_PROP_STRING,
> > > +                      "nmm:albumTitle(nmm:musicAlbum(?urn))",
> > > +                      "audio");
> > > 
> > > 
> > 
> > You are hardcoding the expected type of each key, and I think that
> > shouldn't be done.
> > 
> > You should use Grilo api to query what is the expected type for each
> > key.
> > 
> 
> I'm not sure to understand your point.
> I have to associate a Tracker property to a Grilo key, where can I do
> that outside the plugin ?
> 
> Regards,
I didn't mean the relation between Grilo and Tracker property, but the
expected type.
For instance, you are hardcoding that expecting type for
GRL_KEY_METADATA_KEY_ALBUM is a string[1].
I think you should query Grilo to get what is the expected type of key,
instead of hardcoding.
	J.A.
[1] I'm understanding that MEDIA_PROP_STRING is the expected type for
the Grilo key, not the expected type of Tracker key.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]