Skip to content

Add readpicture command - #144

Merged
Mic92 merged 2 commits into
Mic92:masterfrom
glen3b:readpicture-cmd
Nov 28, 2020
Merged

Add readpicture command#144
Mic92 merged 2 commits into
Mic92:masterfrom
glen3b:readpicture-cmd

Conversation

@glen3b

@glen3b glen3b commented Nov 28, 2020

Copy link
Copy Markdown
Contributor

Based on the excellent work done in #141. Fixes #121.

This PR makes the required tweaks to account for empty responses from binary commands, as well as adding documentation and tests for readpicture. An example script is also provided for practical testing.

Required tweaks to account for empty responses
Documentation and tests also added
Example script provided
Comment thread mpd/asyncio.py
chunk = metadata.pop('binary', None)

if final_metadata is None:
data = chunk

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @chrysn

@Mic92
Mic92 merged commit d9defa1 into Mic92:master Nov 28, 2020
@glen3b
glen3b deleted the readpicture-cmd branch November 28, 2020 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support "readpicture" MPD command

2 participants