summaryrefslogtreecommitdiffstats
path: root/emacsconf-subed.el
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-09-20 20:00:10 -0400
committerSacha Chua <sacha@sachachua.com>2022-09-20 20:00:10 -0400
commitf7cc8a984fa9cc6e33287ba53d604146a3f08150 (patch)
tree821dbac2ab61772757061b0c90fa7020e145893c /emacsconf-subed.el
parentde4d2fca0ec34d0bae1b9bf0db66b4bd8f2fcd98 (diff)
downloademacsconf-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.el4
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
"\"" "&quot ;"
(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))