Skip to content

Commit

Permalink
Changelog and API design updated, ready for 1.0.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
husudosu committed Jun 16, 2022
1 parent 79178b1 commit f7f93c8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions APIDESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ Gets info about MPV. MPV remote plugin settings also included.

Gets status of the player.

**Query parameters:**

**exclude:** You can provide properties to exclude as list.

- example value: exclude=playlist,track-list

Example response:

```json
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@

## 1.0.7

- Fixed IP getting on newer Node.JS versions
- Fixed IP getting on newer Node.JS versions,
- If the CPU usage high on the host machine returning cached properties,
- Ability to exclude properties on /status route as query param, check [APIDESIGN.MD](https://github.com/husudosu/mpv-remote-node/blob/master/APIDESIGN.md)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mpv-remote",
"version": "1.0.6",
"version": "1.0.7",
"description": "MPV remote control",
"main": "./remote.socketio.js",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion remoteServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ const asyncCallWithTimeout = async (asyncPromise, timeLimit) => {
};

app.get("/api/v1/status", async (req, res) => {
setTimeout(async () => {});
try {
const result = await asyncCallWithTimeout(
getMPVProps(req.query.exclude),
Expand Down

0 comments on commit f7f93c8

Please sign in to comment.