From ee80db1c2beb4f6c49e8c3c4328e1dfd6b2ecb42 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sat, 3 Dec 2022 09:11:16 -0500 Subject: fix duration --- emacsconf-stream.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emacsconf-stream.el b/emacsconf-stream.el index 4754cf2..0608649 100644 --- a/emacsconf-stream.el +++ b/emacsconf-stream.el @@ -922,10 +922,10 @@ ffplay URL talk-or-track '(:command ("get_property" "playback-time")) t))) - (duration (emacsconf-stream-send-to-mpv - talk-or-track - '(:command ("get_property" "duration")) - t))) + (duration (gethash "data" (emacsconf-stream-send-to-mpv + talk-or-track + '(:command ("get_property" "duration")) + t)))) (message "%s of %s (%s remaining, ending at %s)" (emacsconf-format-seconds playback-position) (emacsconf-format-seconds duration) -- cgit v1.2.3