diff options
author | Sacha Chua <sacha@sachachua.com> | 2022-09-20 20:00:10 -0400 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2022-09-20 20:00:10 -0400 |
commit | f7cc8a984fa9cc6e33287ba53d604146a3f08150 (patch) | |
tree | 821dbac2ab61772757061b0c90fa7020e145893c /emacsconf-subed.el | |
parent | de4d2fca0ec34d0bae1b9bf0db66b4bd8f2fcd98 (diff) | |
download | emacsconf-el-f7cc8a984fa9cc6e33287ba53d604146a3f08150.tar.xz emacsconf-el-f7cc8a984fa9cc6e33287ba53d604146a3f08150.zip |
Bring in more code from 2021
Diffstat (limited to 'emacsconf-subed.el')
-rw-r--r-- | emacsconf-subed.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emacsconf-subed.el b/emacsconf-subed.el index efddcb8..93542ac 100644 --- a/emacsconf-subed.el +++ b/emacsconf-subed.el @@ -71,7 +71,7 @@ (save-buffer)))) (defun emacsconf-subed-convert-transcript-to-directives (id &optional chapters) - (interactive (read-string "ID: " "mainVideo")) + (interactive (list (read-string "ID: " "mainVideo"))) (goto-char (point-min)) (let* ((chapter-starts (mapcar 'car chapters)) (result (concat @@ -87,7 +87,7 @@ (replace-regexp-in-string "\"" "" ;" (replace-regexp-in-string "[][]" "" (subed-subtitle-text)))) - (subed-vtt--msecs-to-timestamp (subed-subtitle-msecs-start)) + (subed-msecs-to-timestamp (subed-subtitle-msecs-start)) id))))) (when (called-interactively-p 'any) (kill-new result)) |