diff options
| author | Sacha Chua <sacha@sachachua.com> | 2022-12-03 09:11:16 -0500 | 
|---|---|---|
| committer | Sacha Chua <sacha@sachachua.com> | 2022-12-03 09:11:16 -0500 | 
| commit | ee80db1c2beb4f6c49e8c3c4328e1dfd6b2ecb42 (patch) | |
| tree | 6d528d7dd5905b60b265c554c705f9f6452a2a82 | |
| parent | c2ee8b8fff09f4c4e0dbe5388257e184d224ff68 (diff) | |
| download | emacsconf-el-ee80db1c2beb4f6c49e8c3c4328e1dfd6b2ecb42.tar.xz emacsconf-el-ee80db1c2beb4f6c49e8c3c4328e1dfd6b2ecb42.zip  | |
fix duration
| -rw-r--r-- | emacsconf-stream.el | 8 | 
1 files 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)  | 
