On Mon, 2007-09-24 at 21:25 +0200, Joost wrote: > eg.: This call: > kaa.beacon.query(attr='artist', type='audio') > previous returned 1 item for every artist. Now it returns many (the > same) items for every artist. Probably for each song an item. > Is this wanted behaviour? I would prefer to see the first described > behavior.
No, that's a bug. Should be fixed now. Please update kaa.base and let me know. > It would make the querying easier (on plugin point of view) > By the way, the same behavior is seen in the epg query for > genres/category's. I imagine this is the same bug in kaa.db, so hopefully this epg query is also working properly now. > Also the following query doesn't work anymore: > kaa.beacon.query(artist=self.artist, album=self.album) > The album is not searchable anymore. Error message: ValueError: > Querying on non-searchable attribute 'album' The reason for this is that the 'dir' object type in beacon specifies both artist and album attributes as ATTR_SIMPLE, which means they can't be searched on. So it's behaving as designed, and if this ever worked before, it was a bug. :) What you probably want, which will work, is to limit the query to the audio type, where those attributes are searchable: kaa.beacon.query(type='audio', artist=self.artist, album=self.album) Cheers, Jason. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
