On Tue, Apr 27, 2010 at 10:48 AM, rui kou <[email protected]> wrote:
> How can I get a list of the album or artist??I tryed the xmmsv_coll_parse
> But the result of collection is just songs

Here's a small python example that lists "artist - album" for all
albums you have in your medialibrary:

import xmmsclient
from xmmsclient.collections import *

xc = xmmsclient.XMMSSync("test")
xc.connect()

print "\n".join(sorted("%(artist)s - %(album)s" % x for x in
xc.coll_query_infos(Universe(), fields=["artist", "album"],
groupby=["album"]) if "artist" in x and "album" in x))

-- 
Daniel Svensson

--
_______________________________________________
Xmms2-devel mailing list
[email protected]
http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel

Reply via email to