Re: [Tracker] Is metadata writeable yet?



Also, I can't do File.Rank either:

19 Sep 2006, 19:12:00:940 - Warning: Metadata could not be set for
File.Rank with value 1 due to Metadata is not of a writeable type


On 9/19/06, Edward Duffy <eduffy gmail com> wrote:
Ok..two things then.

1) Is updating embeded metadata planed?

2) MusicBrainz information isn't embeded, is it?  Shouldn't that have
still worked?  It's listed on shared-filemetadata-spec was writeable,
and org.freedesktop.Tracker.Metadata.GetTypeDetails('Audio.MBArtistID')
returns [u'string', False, True]

On 9/19/06, Jamie McCracken <jamiemcc blueyonder co uk> wrote:
> Edward Duffy wrote:
> > Hey -
> >
> > I'm trying to call org.freedesktop.Tracker.Metadata.Set, but it
> > doesn't seem to be working.  Here's the a simple Python script to set
> > then read Audio.MBArtistID:
> >
> > #!/usr/bin/env python
> >
> > import os
> > import sys
> > import dbus
> >
> > bus = dbus.SessionBus()
> > obj = bus.get_object('org.freedesktop.Tracker', '/org/freedesktop/tracker')
> > meta = dbus.Interface(obj, 'org.freedesktop.Tracker.Metadata')
> >
> > f = os.path.expandvars('$PWD/' + sys.argv[1])
> > keys = [ 'Audio.MBArtistID' ]
> > meta.Set('Files', f, keys, ['11111111-1111-1111-1111-111111111111'])
> > print meta.Get('Files', f, keys)
> >
> > but in my tracker.log I get:
> >
> > 19 Sep 2006, 16:23:33:856 - Warning: Metadata could not be set for
> > Audio.MBArtistID with value 11111111-1111-1111-1111-111111111111 due
> > to Metadata is not of a writeable type
>
> that is correct - embedded metadata cannot be edited (we have no means
> to write the embedded data to the file so we would lose it when file is
> reindexed)
>
> You can use that interface for editable metadata like File.Rank and
> File.Description
>
> --
> Mr Jamie McCracken
> http://jamiemcc.livejournal.com/
>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]