collections in python xmmsclient

2008-01-07 Thread Alex Polite
I just started fooling around with xmms2 and python yesterday. Seems very easy to make quite cool clients. Is there a way to make mlib searches (like the ones found here http://wiki.xmms2.xmms.se/index.php/Collections) from python? My version of python xmmslient is 0.2DrJekyll-4ubuntu2 alex --

Re: collections in python xmmsclient

2008-01-08 Thread Anders Waldenborg
Alex Polite wrote: > I just started fooling around with xmms2 and python yesterday. Seems > very easy to make quite cool clients. Is there a way to make mlib > searches (like the ones found here > http://wiki.xmms2.xmms.se/index.php/Collections) from python? Yes. Slightly longer answer: Somethi

Re: collections in python xmmsclient

2008-01-08 Thread Sham Chukoury
Anders Waldenborg wrote: > from xmmsclient import collections as coll > m = coll.Match(coll.Universe(), field="artist", value="mind.in.a.box") > xs.coll_query_ids(m) Or even easier, using the collections syntax parser ;) def library_find(self, query, cb): def __query_cb(res): cb(re

Re: collections in python xmmsclient

2008-01-08 Thread Daniel Svensson
On Jan 7, 2008 8:16 PM, Alex Polite <[EMAIL PROTECTED]> wrote: > I just started fooling around with xmms2 and python yesterday. Seems > very easy to make quite cool clients. Is there a way to make mlib > searches (like the ones found here > http://wiki.xmms2.xmms.se/index.php/Collections) from pyth

Re: collections in python xmmsclient

2008-01-08 Thread Alex Polite
Ok. I've looked at it a bit. And Here's what I relly want to do: I want to retrieve all artist names in my mlib that occur in more than ten entries, then I want to sort those artist names by order of recency (ie artist that appears in most recently played entry wins). One way of doing that would o

Re: collections in python xmmsclient

2008-01-09 Thread Sébastien Cevey
> In <[EMAIL PROTECTED]> > "Alex Polite" <[EMAIL PROTECTED]> wrote: > I want to retrieve all artist names in my mlib that occur in more than > ten entries, then I want to sort those artist names by order of > recency (ie artist that appears in most recently played entry wins). > One way

Re: collections in python xmmsclient

2008-01-09 Thread Daniel Svensson
On Jan 9, 2008 10:33 AM, Sébastien Cevey <[EMAIL PROTECTED]> wrote: > If we managed to provide an abstract interface to SQL that would map > all its features at an easy, high-level, we would probably not be > developping XMMS2 but instead, we would spend our lives on a beach in > the Halong Bay, ea

Re: collections in python xmmsclient

2008-01-09 Thread Sébastien Cevey
> In <[EMAIL PROTECTED]> > "Daniel Svensson" <[EMAIL PROTECTED]> wrote: > What's phở? http://en.wikipedia.org/wiki/Pho > Will we eat phở at FOSDEM? I doubt it. But come over, I'll make you one, the best in the world (family recipe) ;-P -- Sébastien Cevey -- __