Access QL's library from any Python script

37 views
Skip to first unread message

Peter Schwede

unread,
Oct 27, 2012, 1:35:22 PM10/27/12
to Quod Libet Development
Hi.
How would I do this?

import quodlibet.library

sl = quolibet.library.SongFileLibrary(filename="~/quodlibet/songs")
sl.query("artist=Crisopa")

doesn't do the trick..


Greetings,
Peter

Christoph Reiter

unread,
Oct 27, 2012, 2:10:07 PM10/27/12
to quod-libet-...@googlegroups.com
2012/10/27 Peter Schwede <sp4z...@googlemail.com>:
> Hi.
> How would I do this?

import quodlibet.library
lib = quodlibet.library.SongFileLibrary()
lib.load("/home/user/.quodlibet/songs")
print len(lib)
Reply all
Reply to author
Forward
0 new messages