Use QL's filter for listing up filenames in CLI?

26 views
Skip to first unread message

Peter Schwede

unread,
Oct 23, 2012, 7:01:16 PM10/23/12
to Quod Libet Development
Hi,

I want to pull some music over to my mp3-player (HDD) and asked myself,
if QuodLibet can already filter my files by #(rating > 0.5) and print
out their filenames?

If not, I would have to write my own filter-language-interpreter and use
mutagen in a Python-script to search for valid files.
So, is there already a functionality for that? Would it be easier to
implement a plugin for that feature?


Greetings,
Pete

HoverHell

unread,
Oct 23, 2012, 7:04:00 PM10/23/12
to quod-libet-...@googlegroups.com
On Wed, Oct 24, 2012 at 3:01 AM, Peter Schwede <sp4z...@googlemail.com> wrote:
> I want to pull some music over to my mp3-player (HDD) and asked myself, if
> QuodLibet can already filter my files by #(rating > 0.5) and print out their
> filenames?

The nearest way I know of is to add them to temporary playlist and
then use the resulting file.
Also there's specific support for copying music to players… somewhere.
Also it certainly is possible to run the search in a python script and
get the list of filenames; but not completely sure how (do the search,
most specifically).

eric casteleijn

unread,
Oct 23, 2012, 7:06:32 PM10/23/12
to quod-libet-...@googlegroups.com
Not sure if it was the best way, but when I needed this some time ago, I
wrote a SongsMenuPlugin that writes the filenames of the current
selection to disk, one filename per line:

http://bazaar.launchpad.net/~thisfred/+junk/scripts/view/head:/add_to_list.py


--
eric casteleijn
https://launchpad.net/~thisfred
https://plus.google.com/u/0/104359868728750041170

Christoph Reiter

unread,
Oct 24, 2012, 1:00:52 AM10/24/12
to quod-libet-...@googlegroups.com
quodlibet --print-query="#(rating>0.5)"

Peter Schwede

unread,
Oct 24, 2012, 4:52:48 AM10/24/12
to quod-libet-...@googlegroups.com
Am 24.10.2012 07:00, schrieb Christoph Reiter:
> quodlibet --print-query="#(rating>0.5)"

Awesome! Exactly what I was searching for.
Reply all
Reply to author
Forward
0 new messages