[Tracker] Is metadata writeable yet?



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



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