Skip to content

Commit

Permalink
feat: make new properties "start" and "end" available
Browse files Browse the repository at this point in the history
Closes #331
  • Loading branch information
open-dynaMIX committed Nov 9, 2021
1 parent f695149 commit f98a94e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ local function build_status_response()
["chapter-list"] = mp.get_property_native("chapter-list") or '',
chapters = mp.get_property_native("chapters") or '',
duration = mp.get_property_native("duration") or '',
["end"] = mp.get_property_native("end") or '',
filename = mp.get_property('filename') or '',
fullscreen = mp.get_property_native("fullscreen"),
["loop-file"] = mp.get_property_native("loop-file"),
Expand All @@ -127,6 +128,7 @@ local function build_status_response()
position = mp.get_property_native("time-pos") or '',
remaining = mp.get_property_native("playtime-remaining") or '',
speed = mp.get_property_native('speed') or '',
start = mp.get_property_native('start') or '',
["sub-delay"] = mp.get_property_osd("sub-delay") or '',
["track-list"] = mp.get_property_native("track-list") or '',
volume = mp.get_property_native("volume") or '',
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/snap_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
"chapter-list": [],
"chapters": 0,
"duration": 6.024,
"end": "none",
"filename": "01 - dummy.mp3",
"fullscreen": False,
"loop-file": False,
Expand Down Expand Up @@ -197,6 +198,7 @@
"position": -0.0,
"remaining": 6.024,
"speed": 1,
"start": "none",
"sub-delay": 0,
"track-list": [
{
Expand Down

0 comments on commit f98a94e

Please sign in to comment.