python-mpd2
python-mpd2 copied to clipboard
Python library which provides a client interface for the Music Player Daemon.
I'm trying to work out the syntax for using a search window when using `find()`. The MPD documentation says: > `find {FILTER} [sort {TYPE}] [window {START:END}]` > ... > `window`...
Is there still a way to, without going through private APIs, send the `idle` command and *not* wait for its results? The docs mention `send_idle`/`fetch_idle`, but I see the support...
The `@` prefix is an mpd convention: it is used in `mpd.conf` `bind_to_address` and by libmpdclient (and everything downstream: mpc etc...). It doesn't hurt to be more permissive and accept...
Hi, Got a QQ: Does `python-mpd2` support [`"contains"` find/search expression filter](https://mpd.readthedocs.io/en/latest/protocol.html#filters)? If if does, then it would be great to have an example of it somewhere in the docs or...
Originally reported at: https://github.com/SoongNoonien/mpdevil/issues/38 Using `client.find("title", "")` results in connection loss. Searching with `mpc` client works though. mpd version: Music Player Daemon 0.22.9 (0.22.9) python-mpd2 version: 3.0.4 Code sample: ```...
Consider this snippet: ``` import asyncio import mpd.asyncio async def main(): client = mpd.asyncio.MPDClient() await client.connect("192.168.0.2", 6600) for _ in range(2): print("Status:") print((await client.status())["state"]) await asyncio.sleep(0.1) asyncio.run(main()) ``` Running this...
I need thread safety for python-mpd2, therefore I added a method to my class and wrap all calls to mpd over the method below. This seems to work ok (except...
To import a complete cd from my music database (minimserver) into the playlist I use the following command: mpc ls 'MinimServer/MUSICBRAINZ_ALBUMID/3da0558c-9b50-4249-9dba-3f2e6b0b439a' | mpc add Most of the time this is...
I'm writing a web-based front end to MPD. I instantiate and connect MPDClient when my program starts. At first calling commands works fine, but after some time of inactivity, ```...