Skip to content

Commit

Permalink
feat(api): expose webui version in /api/status response
Browse files Browse the repository at this point in the history
  • Loading branch information
open-dynaMIX committed Dec 8, 2020
1 parent d99b5be commit 504bac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/snapshots/snap_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"type": "audio",
}
],
"webui-version": "2.0.0",
"volume": 0,
"volume-max": 130,
}
1 change: 1 addition & 0 deletions webui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ local function build_status_response()
speed = mp.get_property_native('speed') or '',
["sub-delay"] = mp.get_property_osd("sub-delay") or '',
["track-list"] = mp.get_property_native("track-list") or '',
["webui-version"] = VERSION,
volume = mp.get_property_native("volume") or '',
["volume-max"] = mp.get_property_native("volume-max") or ''
}
Expand Down

0 comments on commit 504bac4

Please sign in to comment.