This backend is not yet in the official distribution packages, pls use a svn checkout for now


MetaTracker

is a tool designed to extract information and metadata about your personal data so that it can be searched easily and quickly.

Coherence uses Tracker as its media database backend to populate a DLNA/UPnP MediaServer with the indexed audio, video and image files.

UPnP ContentDirectory structure

The returned media data from Tracker is represented in this structure:

Tracker Music service

  • Audio
    • All Tracks
    • Albums
      • Album
        • Tracks
    • Artists
      • Albums
        • Album
          • Tracks
    • Playlists (not available from Tracker yet)
    • Genres (not available from Tracker yet)

Tracker Videos service

  • Video
    • All Videos

Tracker Images service

  • Images
    • All Images

Configuration

The Tracker backend accepts these options:

name:
the name this backend should show up on your UPnP clients, defaults to Tracker
service:
which Tracker services to query, defaults to Music,Videos,Images
version
optional, to define a different UPnP device version for that backend

As this backend uses DBus to connect to http://projects.gnome.org/tracker/ you need to set in the global Coherence configuration the option use_dbus to yes.

Examples

Old config file:

[[TrackerStore]] 
    name = MyTracker
    service = Music

New config file:

<plugin active="yes">
    <backend>TrackerStore</backend>
    <name>MyTracker</name>
    <service>Music,Videos,Images</service>
</plugin>

Python code:

coherence.add_plugin('TrackerStore',
                     name='MyTracker',
                     service='Music,Videos,Images')

DBus:

coherence_service = dbus.SessionBus().get_object('org.Coherence','/org/Coherence')
coherence_service.add_plugin('TrackerStore',
                             {'name':'MyTracker',
                              'service'='Music,Videos,Images'},
                             dbus_interface='org.Coherence',
                             reply_handler=add_plugin_callback,
                             error_handler=error_callback)

Commandline:

coherence --option=use_dbus:yes --plugin=backend:TrackerStore,name:MyTracker,service:Music,Videos,Images

Specifying options for Coherence on the commandline is supported with Coherence versions >= 0.5.7.

Open Tickets for this backend

#286
Adapt Tracker store to 0.7 version