Re: [Tracker] Using tracker extractors from other applications
- From: Nikolaus Rath <Nikolaus rath org>
- To: Ivan Frade <ivan frade gmail com>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] Using tracker extractors from other applications
- Date: Thu, 18 Nov 2010 17:18:33 -0500
On 11/18/2010 03:41 PM, Ivan Frade wrote:
Hi,
On Wed, Nov 17, 2010 at 5:16 PM, Nikolaus Rath <Nikolaus rath org
<mailto:Nikolaus rath org>> wrote:
Martyn Russell <martyn-bhGbAngMcJvQT0dZR+AlfA public gmane org
<mailto:martyn-bhGbAngMcJvQT0dZR%2BAlfA public gmane org>> writes:
> On 17/11/10 00:02, Nikolaus Rath wrote:
>
This gives me the following result:
...
So it seems that I still have to parse the entire string. Is there a way
to get the data in more structured form?
We have code in python doing that for our extraction test cases. Check
the class ExtractorHelper in:
http://git.gnome.org/browse/tracker/tree/tests/functional-tests/common/utils/helpers.py
Basically:
extractor = ExtractorHelper ()
results = extractor.get_metadata (filename)
That looks great, thanks!
In our tests we don't specify the mimetype and they work fine.
So what are you passing as `mime` in get_metadata? `None`, an empty string?
Also, with a plain text document
tracker.GetMetadata('file:///home/nikratio/misc/Victoria.tex',
'text/plain')
I do not get any contents:
(dbus.String(u''), dbus.String(u' a nfo:PlainTextDocument .\n'))
Am I doing something wrong?
Do you by any chance also have an idea of why this isn't working?
Best,
-Nikolaus
--
»Time flies like an arrow, fruit flies like a Banana.«
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]