Mic92 / python-mpd2

Python library which provides a client interface for the Music Player Daemon.
GNU Lesser General Public License v3.0
352 stars 119 forks source link

regex search mode #219

Closed d3xt3r01 closed 11 months ago

d3xt3r01 commented 11 months ago

In ncmpcpp, there's a Search mode option that has these options:

The current MPDClient.search() seems to do the first option. Is there a way to make it allow regexes?

d3xt3r01 commented 11 months ago

Read a little bit about the protocol and I found I can simply use client.search("(file =~ 'something')")

https://mpd.readthedocs.io/en/latest/protocol.html#filter-syntax