Re: [Tracker] Is metadata writeable yet?
- From: Jamie McCracken <jamiemcc blueyonder co uk>
- To: Edward Duffy <eduffy gmail com>
- Cc: tracker email list <tracker-list gnome org>
- Subject: Re: [Tracker] Is metadata writeable yet?
- Date: Tue, 19 Sep 2006 22:34:05 +0100
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]