Skip to content
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

Documentation for REST API playitem is unclear #12

Open
pfrenssen opened this issue Jan 23, 2025 · 1 comment
Open

Documentation for REST API playitem is unclear #12

pfrenssen opened this issue Jan 23, 2025 · 1 comment

Comments

@pfrenssen
Copy link

Documentation: https://github.com/moode-player/docs/blob/main/setup_guide.md#61-rest-api

The documentation for playitem | playitem_next is not clear. The command in the title is spelled playitem and playitem_next without an underscore, but the explanation and examples mention play_item and play_item_next with an underscore.

The examples also seem to be incorrect. They all result in errors. The format doesn't seem to match typical REST API requests.

Examples:
play_item RADIO/Soma FM - Fluid.pls

This seems to indicate that the following URL should be used: http://moode/command/?cmd=play_item RADIO/Soma FM - Fluid.pls

But this results in an error:

{"0":"readMpdResp(): Error: response $str[0]=(ACK [5@0] {} unknown command \"play_item\")"}
@moodeaudio
Copy link
Contributor

Thanks for identifying that bug.
Should be all fixed now with commit cc857d3

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

No branches or pull requests

2 participants