-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support MPD albumart and readpicture command #17
Comments
Does anyone know how the versioning works with MPD? Currently we declare version 0.19.0.
It looks like, from this client, Should clients use the protocol version to find out if a server supports a command, or should they be using the |
If I wrote a client, I'd use That way, we can add new commands one by one, and they'll be useful at least in some clients. To bump the declared version up, I think that we at least should make "empty shells" of any new commands that we don't support, so that the commands are correctly parsed but calling them doesn't change anything. |
By "empty shells" do you mean they would feature in the |
There are a few places where we currently a raise |
Here's the relevant documentation for albumart {URI} {OFFSET}Locate album art for the given song and return a chunk of an album art image file at offset OFFSET. Returns the file size and actual number of bytes read at the requested offset, followed by the chunk requested as raw bytes (see Binary Responses), then a newline and the completion code. Example:
|
We should probably not include those in |
I'd like to have this feature also. I would think a NotImplemented would be okay - not great obviously - but I would assume that not all clients would hit the errors. Guess we should figure out what changed from 0.19 and now... |
I had a go at implementing this recently, but I couldn't get it to work. We need to be able to allow |
Hello! I have implemented the |
I tested leso-kn's implementation and did some updates which are waiting for review and commit. I verified the new feature with:
Can't test IOS unfortunately. |
@gvc0 Just want to say thanks for all the activity from you. Contributors like you keep Mopidy alive. |
@gvc0 Merged your changes into into leso-kn/mopidy-mpd (see #57). Sorry for the delay, last few months have been quite fluctuative.
# Steps to clean-run unit-tests and generate coverage.xml (Python 3.9.16)
> docker run --rm -ti -v $PWD:/pro --workdir /pro python:3.9-alpine ash -c "set -e
apk add gcc gstreamer gst-plugins-bad gobject-introspection-dev cairo-dev musl-dev
pip install tox PyGObject
python -m tox -e py39 -- --cov-report=xml" I would like to repeat that this feature is ready for merging! Thanks to @gvc0 it now additionally supports artwork of local tracks through |
Wrote Something if this helps https://github.com/tr1xem/ncmpcpp-with-cover-art Can add file thumnails if someone still uses that Open for suggestions |
Add support to the MPD frontend for the
albumart
command allowing clients to receive album art directly from mopidy.Defined here: https://www.musicpd.org/doc/protocol/database.html
The text was updated successfully, but these errors were encountered: