[coherence-dev] wmc_mapping documentation

Frank Scholz fs at beebits.net
Wed Apr 15 16:25:32 CEST 2009


Hi,

> I understand that the xbox likes some special treatment :-) for audio files but I don't know what treatment this is.
> So can somebody point by to some documentation about wmc_mapping etc.

I once did this page http://coherence.beebits.net/wiki/XBox
hope it is still valid.

For audio it basically boils down to something like this:

 self.wmc_mapping.update({'4': lambda :
          self.get_by_id(AUDIO_ALL_CONTAINER_ID),    # all tracks
                          '7': lambda :
          self.get_by_id(AUDIO_ALBUM_CONTAINER_ID),    # all albums
                          '6': lambda :
          self.get_by_id(AUDIO_ARTIST_CONTAINER_ID),    # all artists
                                })

as used in the MediaDB backend.

Albums of an artist aren't displayed yet, but I have an idea
on how to fix that.

Regards,
Frank



More information about the coherence-dev mailing list